forest_plot | R Documentation |
The forest plot functionality in baggr is a simple interface for calling the forestplot function. By default the forest plot displays raw (unpooled) estimates for groups and the treatment effect estimate underneath. This behaviour can be modified to display pooled group estimates.
forest_plot(
bg,
show = c("inputs", "posterior", "both", "covariates"),
print = show,
prob = 0.95,
digits = 3,
...
)
bg |
a baggr class object |
show |
if |
print |
which values to print next to the plot: values of |
prob |
width of the intervals (lines) for the plot |
digits |
number of digits to display when printing out mean and SD in the plot |
... |
other arguments passed to forestplot |
forestplot function and its vignette for examples; effect_plot and baggr_plot for non-forest plots of baggr results
bg <- baggr(schools, iter = 500)
forest_plot(bg)
forest_plot(bg, show = "posterior", print = "inputs", digits = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.