pairs.brmsfit: Create a matrix of output plots from a 'brmsfit' object

Description Usage Arguments Details Examples

View source: R/plot.R

Description

A pairs method that is customized for MCMC output.

Usage

1
2
## S3 method for class 'brmsfit'
pairs(x, pars = NA, variable = NULL, regex = FALSE, fixed = FALSE, ...)

Arguments

x

An object of class brmsfit

pars

Deprecated alias of variable. Names of the parameters to plot, as given by a character vector or a regular expression.

variable

Names of the variables (parameters) to plot, as given by a character vector or a regular expression (if regex = TRUE). By default, a hopefully not too large selection of variables is plotted.

regex

Logical; Indicates whether variable should be treated as regular expressions. Defaults to FALSE.

fixed

(Deprecated) Indicates whether parameter names should be matched exactly (TRUE) or treated as regular expressions (FALSE). Default is FALSE and only works with argument pars.

...

Further arguments to be passed to mcmc_pairs.

Details

For a detailed description see mcmc_pairs.

Examples

1
2
3
4
5
6
7
8
## Not run: 
fit <- brm(count ~ zAge + zBase * Trt 
           + (1|patient) + (1|visit), 
           data = epilepsy, family = "poisson")  
pairs(fit, variable = variables(fit)[1:3])
pairs(fit, variable = "^sd_", regex = TRUE)

## End(Not run)

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