knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(here)
library(brms)
library(brmstools)
library(dplyr)
load(here("vignettes/forest-plots/fit_ml.rda"))
head(fit_ml$data)
summary(fit_ml)

Coefficient plots

A coefficient plot is a visual replacement of a table summarizing a fitted model's parameters. brmstools' coefplot() draws population-level and group-specific parameter means and credible intervals on the same plot.

coefplot(fit_ml, 
         level = .8,
         r_intervals = TRUE, 
         r_col = "firebrick")

Users can plot a single parameter by naming it:

coefplot(fit_ml, pars = "Days", r_intervals = T)

Or only the population-level / group-specific parameters:

coefplot(fit_ml, type = "b")


mvuorre/brmstools documentation built on July 10, 2018, 7:49 a.m.