Learn R Programming

metansue (version 1.2)

forest.meta.nsue: Forest Plots for “meta.nsue” Objects

Description

Draws a forest plot.

Usage

# S3 method for meta.nsue
forest(x, ...)

Arguments

x

an object of class "meta.nsue".

...

other arguments (currently ignored).

Value

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

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 sizes of the hypotheses of the model with the corresponding 95% confidence intervals are added to the bottom of the forest plot. Note that in case of complex models you may want to show only those hypotheses related to the overall or subgroup means, and thus you may have to specify them using linearHypothesis.

See Also

funnel for plotting funnel plots.

meta for conducting a meta-analysis.

linearHypothesis for changing the hypotheses.

pdf for saving the plot in a PDF file.

Examples

Run this code
# NOT RUN {
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