Learn R Programming

metansue (version 2.6)

forest: Forest Plots for “meta.nsue” Objects

Description

Draws a forest plot.

Usage

forest(x, width, ...)

Value

The function invisibly returns the optimal width and height of the plot, useful when calling the function pdf.

Arguments

x

an object of class "meta.nsue".

width

the width of the plot, expressed as the maximum effect size that would be still plotted.

...

other arguments (currently ignored).

Author

Joaquim Radua

Details

The plot shows the observed or imputed effect sizes of the studies with the corresponding 95% confidence intervals. A light gray shadow shows the interval containing 95% of the imputations for studies with Non-statistically Significant Unreported Effects (NSUEs).

The effect size of the hypothesis of the model with the corresponding 95% confidence intervals is added to the bottom of the forest plot.

See Also

funnel for plotting funnel plots.

meta for conducting a meta-analysis.

pdf for saving the plot in a PDF file.

Examples

Run this code
t <- c(3.4, NA, NA, NA, NA, 2.8, 2.1, 3.1, 2.0, 3.4)
n <- c(40, 20, 22, 24, 18, 30, 25, 30, 16, 22)
m <- meta(smc_from_t(t, n))
forest(m)

Run the code above in your browser using DataLab