Learn R Programming

brms (version 2.19.0)

prior_summary.brmsfit: Extract Priors of a Bayesian Model Fitted with brms

Description

Extract Priors of a Bayesian Model Fitted with brms

Usage

# S3 method for brmsfit
prior_summary(object, all = TRUE, ...)

Value

For brmsfit objects, an object of class brmsprior.

Arguments

object

An object of class brmsfit.

all

Logical; Show all parameters in the model which may have priors (TRUE) or only those with proper priors (FALSE)?

...

Further arguments passed to or from other methods.

Examples

Run this code
if (FALSE) {
fit <- brm(count ~ zAge + zBase * Trt
             + (1|patient) + (1|obs),
           data = epilepsy, family = poisson(),
           prior = c(prior(student_t(5,0,10), class = b),
                     prior(cauchy(0,2), class = sd)))

prior_summary(fit)
prior_summary(fit, all = FALSE)
print(prior_summary(fit, all = FALSE), show_df = FALSE)
}

Run the code above in your browser using DataLab