posterior_interval.brmsfit: Compute posterior uncertainty intervals

Description Usage Arguments Value Examples

View source: R/summary.R

Description

Compute posterior uncertainty intervals for brmsfit objects.

Usage

1
2
## S3 method for class 'brmsfit'
posterior_interval(object, pars = NA, variable = NULL, prob = 0.95, ...)

Arguments

object

An object of class brmsfit.

pars

Deprecated alias of variable. For reasons of backwards compatibility, pars is interpreted as a vector of regular expressions by default unless fixed = TRUE is specified.

variable

A character vector providing the variables to extract. By default, all variables are extracted.

prob

A value between 0 and 1 indicating the desired probability to be covered by the uncertainty intervals. The default is 0.95.

...

More arguments passed to as.matrix.brmsfit.

Value

A matrix with lower and upper interval bounds as columns and as many rows as selected variables.

Examples

1
2
3
4
5
6
## Not run: 
fit <- brm(count ~ zAge + zBase * Trt,
           data = epilepsy, family = negbinomial())
posterior_interval(fit)

## End(Not run)

brms documentation built on Aug. 23, 2021, 5:08 p.m.