Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 class 'brmsfit'
prior_summary(object, all = TRUE, ...)

Arguments

object

A brmsfit object

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.

Value

For brmsfit objects, an object of class brmsprior.

Examples

## Not run: 
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)

## End(Not run)

brms

Bayesian Regression Models using 'Stan'

v2.15.0
GPL-2
Authors
Paul-Christian Bürkner [aut, cre], Jonah Gabry [ctb], Sebastian Weber [ctb], Andrew Johnson [ctb], Martin Modrak [ctb]
Initial release
2021-03-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.