set_priors: Assigns predictors to a model

Description Usage Arguments Details Value

Description

set_priors() sets the priors for each variable in a model.

Usage

1
set_priors(model_array, ...)

Arguments

model_array

a tibble containing the model information (distribution and model equation). Often the output of a make_distribution() function.

...

a list of expressions set up as "predictor = distribution" where the distribution is written in JAGS syntax

Details

Each prior is written following JAGS notation and specified using variable = JAGS. User must specify a prior for the intercept using int=. The priors are model specific so if the user supplies priors for variables that are not found in the model equation they will not be retained.

Value

a modified version of model_array that has the relevant predictors for each model(row)


bprucka/uttr documentation built on May 27, 2019, 11:54 a.m.