Learn R Programming

brms (version 0.1.0)

brm.plot: Trace and density plots for MCMC samples

Description

Trace and density plots for MCMC samples using the ggmcmc package

Usage

brm.plot(fit, family = NA)

Arguments

fit
An object of class stanfit or an object that can be coerced to an mcmc.list via as.mcmc of package coda.
family
Name of the family of parameters to plot, as given by a character vector or a regular expression. A family of parameters is considered to be any group of parameters with the same name but different numerical value between square brackets (as beta[1], b

Examples

Run this code
fit <- brm(count ~ log_Age_c + log_Base4_c * Trt_c, data = epilepsy,
           family = c("poisson", "log"))
brm.plot(fit)

Run the code above in your browser using DataLab