fit_ensemble_model {EcoEnsemble} | R Documentation |
Fits the ensemble model
Description
fit_ensemble_model
runs an MCMC of the ensemble model. This process can take a long time depending on the size of the datasets.
Usage
fit_ensemble_model(
observations,
simulators,
priors,
full_sample = TRUE,
control = list(adapt_delta = 0.95),
drivers = FALSE,
MMod,
...
)
Arguments
observations |
A |
simulators |
A |
priors |
An |
full_sample |
A |
control |
If creating a full sample, this is a named |
drivers |
A logical indicating whether drivers have been used in combination with models. Default value is FALSE. |
MMod |
Not currently implemented. |
... |
Additional arguments passed to the function |
Value
An EnsembleFit
object.
References
Stan Development Team (2020). RStan: the R interface to Stan. R package version 2.21.2. https://mc-stan.org
See Also
Examples
fit <- fit_ensemble_model(observations = list(SSB_obs, Sigma_obs),
simulators = list(list(SSB_ewe, Sigma_ewe, "EwE"),
list(SSB_fs, Sigma_fs, "FishSUMS"),
list(SSB_lm, Sigma_lm, "LeMans"),
list(SSB_miz, Sigma_miz, "Mizer")),
priors = EnsemblePrior(4,
ind_st_params = IndSTPrior(parametrisation_form = "lkj",
var_params= list(1,1), cor_params = 10, AR_params = c(2, 2))),
full_sample = FALSE) #Only optimise in this case