Calibrator | R Documentation |
An R6 class to calibrate a model to data
An R6 class to calibrate a model to data
Like a simulator, to calibrate the model to a dataset, a calibrator expects the known and unknown initial conditions and the parameter values, and the data to calibrate to. In addition, it also expects a mapping from model solutions to observation variables.
the
names of all parameters
the
names of all parameters
new()
initializer
Calibrator$new( model, time, data, ..., cumulative = FALSE, mapping = character() )
model
the model to calibrate
time
either a numeric vector containing the times (including the initial time) of the ODE solution that corresponds to the data, or a character value giving the name of the column in data that corresponds to time.
data
a data.frame object containign the data for the calibration
...
each argument is a formula defining the maps between the data columns and the model variables. Please see the details section.
A mapping is a named argument, where name is the data colummn name, and value corresponds to the model variables (or an expression to calculate from the model variables.) Calibrate the model to data
calibrate()
Calibrator$calibrate(initial.values, parms, ...)
initial.values
the initial values for the model. The parameters that need to be estimate should be NA, those that do not need to be estimated must contain a finite value.
parms
the parameter values of the model. The parameters that need to be estimate should be NA, those that do not need to be estimated must contain a finite value.
...
extra arguments to be passed to calibrators
clone()
The objects of this class are cloneable with this method.
Calibrator$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.