coefplot: Coefficient plots for brms models

Description Usage Arguments Value

View source: R/coefplot.R

Description

A more traditional version of bayesplot::mcmc_intervals(), additionally showing parameter means (and CIs) for each grouping factor.

Usage

1
2
3
4
coefplot(model, grouping = NA, level = 0.95, pars = NA,
  type = "br", interval_col = "black", interval_h = 0.1,
  point_col = "black", point_size = 3, r_col = "black",
  r_intervals = FALSE, r_alpha = 0.5, ...)

Arguments

model

A brmsfit model

grouping

Name of grouping variable (e.g. (1 | grouping)). Defaults to NA which returns the unique / first grouping factor in model.

level

For limits of credible intervals

pars

Which parameters to show (defaults to NA (all parameters)).

type

Show population level ("b"), group-specific ("r"), or both types ("br", default) of parameters.

interval_col

Color of intervals

interval_h

Height of bars at credible interval limits

point_col

Color of points

point_size

Size of points

r_col

Color of points for group-specific posterior means

r_intervals

Show credible intervals for group-specific parameters?

r_alpha

Transparency of group-specific estimates

...

Passed to tidyfitted()

Value

a ggplot


mvuorre/brmstools documentation built on Aug. 1, 2019, 9:29 p.m.