fit_ensemble_model | R Documentation |
fit_ensemble_model
runs an MCMC of the ensemble model. This process can take a long time depending on the size of the datasets.
fit_ensemble_model(
observations,
simulators,
priors,
full_sample = TRUE,
control = list(adapt_delta = 0.95),
drivers = FALSE,
MMod,
...
)
observations |
A |
simulators |
A |
priors |
An |
full_sample |
A |
control |
If creating a full sample, this is a named |
drivers |
A |
MMod |
Not currently implemented. |
... |
Additional arguments passed to the function |
An EnsembleFit
object.
Stan Development Team (2020). RStan: the R interface to Stan. R package version 2.21.2. https://mc-stan.org
EnsembleFit
, EnsembleSample
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.