plot.mm_perf: Forest Plots

Description Usage Arguments Details Value Author(s) References Examples

View source: R/plot_utils.r

Description

Function to create forest plots for objects of class "mm_perf".

Usage

1
2
## S3 method for class 'mm_perf'
plot(x, ...)

Arguments

x

An object of class "mm_perf"

...

Additional arguments which are passed to forest.

Details

The forest plot shows the performance estimates of each study with corresponding confidence intervals.

Value

An object of class ggplot

Author(s)

Thomas Debray <thomas.debray@gmail.com>

References

Lewis S, Clarke M. Forest plots: trying to see the wood and the trees. BMJ. 2001; 322(7300):1479–80.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(EuroSCORE)

# Calculate the c-statistic and its standard error
est1 <- ccalc(cstat = c.index, cstat.se = se.c.index, cstat.cilb = c.index.95CIl, 
              cstat.ciub = c.index.95CIu, N = n, O = n.events, data = EuroSCORE, slab = Study)
plot(est1)

# Calculate the total O:E ratio and its standard error
est2 <- oecalc(O = n.events, E = e.events, N = n, data = EuroSCORE, slab = Study)
plot(est2)

metamisc documentation built on Oct. 13, 2021, 3 p.m.