prior_ensemble_model {EcoEnsemble} | R Documentation |
Generate samples of parameters from prior distribution
Description
Methods to generates samples of the parameters from the prior distribution of the ensemble model.
Usage
prior_ensemble_model(
priors,
M = 1,
MM = NULL,
full_sample = TRUE,
control = list(adapt_delta = 0.95),
...
)
Arguments
priors |
An |
M |
A |
MM |
A |
full_sample |
A |
control |
If creating a full sample, this is a named |
... |
Additional arguments passed to the function |
Value
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.
References
Stan Development Team (2020). RStan: the R interface to Stan. R package version 2.21.2. https://mc-stan.org
See Also
Examples
priors <- EnsemblePrior(4)
prior_density <- prior_ensemble_model(priors, M = 4)