fit | R Documentation |
Fitting Data to Model
fit(
data,
prm.abc,
df.priors,
prm,
n.cores,
last.date = NULL,
save.rdata = FALSE
)
data |
List. Output of function build_data() |
prm.abc |
List. Variables for ABC fitting. Output of function define_abc_prms() |
df.priors |
Dataframe. Parameters ( |
prm |
List. Initial parameters for fitting plot. Output of function load_prm(). |
n.cores |
Numeric. number of cores used for fitting computation. |
last.date |
Date. Last date to stop fitting (e.g., ymd('2021-02-01') or NULL). NULL = latest date available. |
save.rdata |
Logical. Saving the fitting objects in a .rds file. |
do.plot |
Logical. Plot the fitting results and initial parameters |
A list containing the fitted object and additional information.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.