meta2DF.metabin: Convert 'metabin' Objects into Data Frames

Description Usage Arguments Details Value See Also Examples

Description

A function that turns objects of class 'metabin' into a list of data frames used for plotting.

Usage

1
2
3
## S3 method for class 'metabin'
meta2DF(meta, add = NULL, rowOrder = NULL, title = NULL,
                          subtitle = NULL, ...)

Arguments

meta

An object of class 'metabin'.

add

List of vectors that can be added as columns to the data frame with corresponding values to each study row.

rowOrder

Name of the single column to order rows of studies by.

title

Title of the meta-analysis to be shown on top of the plot

subtitle

Subtitle of the meta-analysis to be shown under the title

...

Further arguments from order.

Details

In order to produce the plot, metaDF2Matrix.metabinDF must be called after producing the 'metabinDF' object from this function. The data frame columns can be selected and ordered using metaDF2Matrix.metabinDF.

Value

An object of class c('metabinDF','metaDF') with following list of components:

DF

A data frame with studies as rows and study attributes as columns.

summaryFixed

A data frame with attributes of the fixed effects model. See forestDF.

summaryRandom

A data frame with attributes of the random effects model. See forestDF.

hetero

Statistical results from the input 'metabin' object. See metabin.

title

Title of the meta-analysis.

subtitle

Subtitle of the meta-analysis.

See Also

metaDF2Matrix.metabinDF, drawMeta.metabinM

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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")
### testing 'add' argument
add <- list(test1 = c(1:4), test2 = c(5:8))
Data <- meta2DF(meta1, title = "Thrombolytic Therapy" ,
                rowOrder = "effect", decreasing = TRUE,
                add = add)
Data

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