View source: R/Prior_sampling.R
prior_ensemble_model | R Documentation |
Methods to generates samples of the parameters from the prior distribution of the ensemble model.
prior_ensemble_model(
priors,
M = 1,
MM = NULL,
full_sample = TRUE,
control = list(adapt_delta = 0.95),
...
)
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 |
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
EnsembleFit
priors <- EnsemblePrior(4)
prior_density <- prior_ensemble_model(priors, M = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.