meta2DF: Convert Meta-analysis Objects to Data Frames

Description Usage Arguments Details Value See Also Examples

Description

A generic function that turns meta-analysis objects into a list of data frames used for plotting.

Usage

1
meta2DF(meta, ...)

Arguments

meta

An object of class metabin, 'metacont', meta.MH, meta.DSL, rma.mh, rma.peto, or rma.uni. See 'Details'.

...

Other arguments.

Details

Currently, object meta can come from functions metabin() or metacont() from the meta package, meta.DSL or meta.MH from the rmeta package, or rma.mh, rma.peto, or rma.uni from the metafor package.

Value

An object of class c('metabinDF', 'metaDF') or c('metacontDF', 'metaDF'). For details of these classes, see meta2DF.metabin and meta2DF.metacont respectively.

See Also

meta2DF.metabin, meta2DF.metacont

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(meta)
data(Olkin95)
meta1 <- metabin(event.e, n.e, event.c, n.c, data = Olkin95,
                 subset = c(41,47,51,59), sm = "RR", method = "I")
Data1 <- meta2DF(meta1)
Data1
### testing 'add' argument
add <- list(test1 = c(1:4), test2 = c(5:8))
Data2 <- meta2DF(meta1, title = "Thrombolytic Therapy" ,
                 rowOrder = "effect", decreasing = TRUE,
                 add = add)
Data2

pmur002/metaplot documentation built on May 25, 2019, 10:21 a.m.