Learn R Programming

brms (version 1.1.0)

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

Description

A pairs method that is customized for MCMC output

Usage

"pairs"(x, pars = NA, exact_match = FALSE, ...)

Arguments

x
An object of class stanfit
pars
Names of the parameters to plot, as given by a character vector or a regular expression. By default, all parameters are plotted.
exact_match
Indicates whether parameter names should be matched exactly or treated as regular expression. Default is FALSE.
...
Further arguments to be passed to pairs.stanfit.

Details

For a detailed description see pairs.stanfit.

Examples

Run this code
## Not run: 
# fit <- brm(count ~ log_Age_c + log_Base4_c * Trt_c 
#            + (1|patient) + (1|visit), 
#            data = epilepsy, family = "poisson")  
# pairs(fit, pars = parnames(fit)[1:3], exact_match = TRUE)
# pairs(fit, pars = "^sd")
# ## End(Not run)

Run the code above in your browser using DataLab