Run Gompitz Predicion
Usage
runGompitzPrediction(
input.data,
subset = NULL,
calibration,
strategy = 0,
...,
verbose = 1,
do.stop = TRUE,
clear.observations = TRUE,
VERSION = getOperatingSystemType(),
use.data.table = getOption("kwbGompitz.use.data.table", FALSE)
)Arguments
- input.data
prepared input data as retrieved by
composeGompitzInputData- subset
indexes of rows in
input.datato be used for prediction. ifNULL, all rows ininput.datawill be used.- calibration
result of Gompitz calibration as retrieved by
runGompitzCalibration- strategy
strategy identifier. Must be one of 0 (do nothing), 1 (length-driven strategy), 2 (budget-driven strategy), or 3 (optimised strategy).")
- ...
arguments passed to the corresponding
.fileContentStrategyfunctions, such asrange.years(two-element vector with first and last year of prediction), rehabilitation.costs (needed for strategy = 1 or 2 or 3, seekwbGompitz:::.fileContentStrategy1orkwb.gomiptz:::.fileContentStrategy2orkwb.gomiptz:::.fileContentStrategy3), annual.total.length (needed for strategy = 1, seekwbGompitz:::.fileContentStrategy1), annual.total.budget (needed for strategy = 2, seekwb.gomiptz:::.fileContentStrategy2), max.tol.prop.of.length (needed for strategy = 3, seekwb.gomiptz:::.fileContentStrategy3), target.year (needed for strategy = 3, seekwb.gomiptz:::.fileContentStrategy3)- verbose
verbosity level, default: 1
- do.stop
if
TRUEthe program stops in case of inconsistencies- clear.observations
if
TRUE(default) the columns containing the inspection year and the observed condition class, respectively, are cleared in the input file given togompred. Otherwise the observed condition classes are kept in the input file and thus considered bygompred.- VERSION
name of subdirectory in package containing the binary files to be executed. Possible values: "unix", "win32", "win32_kwb"
- use.data.table
if
TRUE,freadis used to read the result file