R/plot_intervals.R
plot_intervals.Rd
Plot probability density intervals for fixed effects of brms models
plot_intervals(brmsfit)
Returns a density plot with z-transformed fixed effect estimates.
if (FALSE) { # \dontrun{
md = dplyr::starwars
# Centering variables
md = md %>%
dplyr::select(mass, sex, species) %>%
dplyr::mutate(mass = log(mass),
sex = dplyr::recode(sex, "male" = 1,
"female" = -1,
"hermaphroditic" = 0,
"none" = as.numeric(NA)))
mod = brms_model(Chainset = 2,
Response = "mass",
FixedEffect = "sex",
RandomEffect = "species",
Family = "gaussian",
Data = md)
plot_intervals(mod)
} # }