Skip to contents

This function obtains the brms default prior distributions for a particular model, then replaces these prior distributions using:

  1. Model specific prior distributions from epidist_model_prior()

  2. Family specific prior distributions from epidist_family_prior()

  3. 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.

Usage

epidist_prior(data, family, formula, prior)

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 by brms::set_prior() or related functions. These priors are passed to epidist_prior() in the prior argument.