This is an internal function called by baggr. You can use it for debugging or to run modified models. It extracts and prepares priors passed by the user. Then, if any necessary priors are missing, it sets them automatically and notifies user about these automatic choices.
prepare_prior(
prior,
data,
stan_data,
model,
pooling,
covariates,
quantiles = c(),
silent = FALSE
)
A named list with prior values that can be appended to stan_data
and passed to a Stan model.
prior
argument passed from baggr call
data
another argument in baggr
list of inputs that will be used by sampler this is already pre-obtained through convert_inputs
same as in baggr
same as in baggr
same as in baggr
same as in baggr
same as in baggr