prior_ensemble_model {EcoEnsemble} | R Documentation |
Methods to generates samples of the parameters from the prior distribution of the ensemble model.
prior_ensemble_model(
priors,
M = 1,
full_sample = TRUE,
control = list(adapt_delta = 0.95),
...
)
priors |
An |
M |
A |
full_sample |
A |
control |
If creating a full sample, this is a named |
... |
Additional arguments passed to the function |
A list
containing two items named samples
and point_estimate
. If full_sample==TRUE
, samples
is a stanfit
and point_estimate
is a NULL
object, else samples
is a NULL
and point_estimate
is a list
object. It is possible to generate a point estimate for the prior if the individual short-term discrepancy prior follows a hierarchical parameterisation.
Stan Development Team (2020). RStan: the R interface to Stan. R package version 2.21.2. https://mc-stan.org
priors <- EnsemblePrior(4)
prior_density <- prior_ensemble_model(priors, M = 4)