Skip to contents

Returns the table of all parameters whose priors can be set via prior, together with their default priors — the bml analogue of brms::get_prior(). Use it to discover valid class/coef/ group combinations before overriding.

Usage

get_prior(formula, data, family = stats::gaussian())

Arguments

formula

The model formula (same as for bml).

data

The data (member-level long format).

family

Model family (function, object, or string). Default gaussian().

Value

A data frame with columns class, coef, group, node (the internal JAGS node), and default.

See also

Examples

if (FALSE) { # \dontrun{
get_prior(
  y ~ x + mm(id = id(pid, gid), vars = vars(z), w = w(~ 1/n), fn = fn("sum")),
  data = dat, family = gaussian()
)
} # }