Define prior distributions using brms
defaults, model specific priors, family specific priors, and user provided priors
Source: R/prior.R
epidist_prior.Rd
This function obtains the brms
default prior distributions for a particular
model, then replaces these prior distributions using:
Model specific prior distributions from
epidist_model_prior()
Family specific prior distributions from
epidist_family_prior()
User provided prior distributions Each element of this list overwrites previous elements, such that user provided prior distribution have the highest priority. At the third stage, if a prior distribution is provided which is not included in the model, then a warning will be shown. To prevent this warning, do not pass prior distributions for parameters which are not in the model.
Arguments
- data
An object with class corresponding to an implemented model.
- family
A description of the response distribution and link function to be used in the model created using
epidist_family()
.- formula
A symbolic description of the model to be fitted created using
epidist_formula()
.- prior
One or more
brmsprior
objects created bybrms::set_prior()
or related functions. These priors are passed toepidist_prior()
in theprior
argument.
See also
Other prior:
epidist_family_prior()
,
epidist_family_prior.default()
,
epidist_family_prior.lognormal()
,
epidist_model_prior()
,
epidist_model_prior.default()