metaBMA (version 0.6.1)

plot_forest: Forest Plot for Meta-Analysis

Description

Plots estimated effect sizes for all studies.

Usage

plot_forest(meta, from, to, shrinked = "random", summary = c("mean",
  "hpd"), mar = c(4.5, 12, 4, 0.3), ...)

Arguments

meta

fitted meta-analysis model

from

lower limit of the x-axis

to

upper limit of the x-axis

shrinked

which meta-analysis model should be used to show (shrinked) estimates of the study effect sizes. The name must match the corresponding name in the list meta. Can be suppressed by shrinked = ""

summary

character vector with two values: first, either "mean" or "50%"; and second, either highest-probability-density interval "hpd" or the Bayesian credibility interval "bci".

mar

margin of the plot in the order c(bottom, left, top, right) (see par)

...

arguments passed to plot (e.g., from, to)

See Also

meta_bma, meta_fixed, meta_random

Examples

Run this code
# NOT RUN {
data(towels)
mf <- meta_fixed(logOR, SE, study, towels)
plot_forest(mf, mar = c(4.5,20,4,.2), xlab="Log Odds Ratio")
# }

Run the code above in your browser using DataCamp Workspace