massage_prior: Transforms a prior formula to a list.

Description Usage Arguments Value

View source: R/prior_massage.R

Description

Transforms a prior formula to a list.

Usage

1
massage_prior(prior, data = NULL, .force = TRUE)

Arguments

data

Optional data frame.

.force

Logical; if TRUE, forces the arguments given to the prior.

formula

Two-sided formula with a covariate on the left-hand side and a prior from prior_list on the right-hand side.

Value

A list containing list containing the name of the covariate, the name of the prior,and the values of the prior parameters. If the right hand side refers to a factor, the expanded factor names are used instead. (Intercept) is not included: It must be named individually.


JonasMoss/straussR documentation built on May 17, 2019, 7:02 p.m.