plot_forest: Forest Plot for Meta-Analysis

Description Usage Arguments See Also Examples

View source: R/plot_forest.R

Description

Plots estimated effect sizes for all studies.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_forest(
  meta,
  from,
  to,
  shrinked = "random",
  summary = c("mean", "hpd"),
  mar = c(4.5, 12, 4, 0.3),
  cex.axis = 1,
  ...
)

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)

cex.axis

size of the y-axis annotation for the labels of studies.

...

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

See Also

meta_bma, meta_fixed, meta_random

Examples

1
2
3
data(towels)
mf <- meta_fixed(logOR, SE, study, towels)
plot_forest(mf, mar = c(4.5, 20, 4, .2), xlab = "Log Odds Ratio")

Example output

Loading required package: Rcpp
Warning message:
In file(con, "r") : cannot open file '/proc/stat': Permission denied

metaBMA documentation built on March 17, 2021, 9:06 a.m.