fixed_effects {baggr} | R Documentation |
Effects of covariates on outcome in baggr models
fixed_effects(bg, summary = FALSE, transform = NULL, interval = 0.95)
bg |
a baggr model |
summary |
logical; if |
transform |
a transformation (R function) to apply to the result; (this is commonly used when calling from other plotting or printing functions) |
interval |
uncertainty interval width (numeric between 0 and 1), if |
A list with 2 vectors (corresponding to MCMC samples)
tau
(mean effect) and sigma_tau
(SD). If summary=TRUE
,
both vectors are summarised as mean and lower/upper bounds according to
interval
treatment_effect for overall treatment effect across groups, group_effects for effects within each group, effect_draw and effect_plot for predicted treatment effect in new group