Validate Prior for brms Models
Validate priors supplied by the user. Return a complete set of priors for the given model, including default priors.
validate_prior( prior, formula, data, family = gaussian(), sample_prior = "no", data2 = NULL, knots = NULL, ... )
prior |
One or more |
formula |
An object of class |
data |
An object of class |
family |
A description of the response distribution and link function to
be used in the model. This can be a family function, a call to a family
function or a character string naming the family. Every family function has
a |
sample_prior |
Indicate if samples from priors should be drawn
additionally to the posterior samples. Options are |
data2 |
A named |
knots |
Optional list containing user specified knot values to be used
for basis construction of smoothing terms. See
|
... |
Other arguments for internal usage only. |
An object of class brmsprior
.
prior1 <- prior(normal(0,10), class = b) + prior(cauchy(0,2), class = sd) validate_prior(prior1, count ~ zAge + zBase * Trt + (1|patient), data = epilepsy, family = poisson())
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.