as.data.frame.meta {meta} | R Documentation |
The as.data.frame
method returns a data frame containing
information on individual studies, e.g., estimated treatment effect
and its standard error.
## S3 method for class 'meta' as.data.frame(x, row.names = NULL, optional = FALSE, ...)
x |
An object of class |
row.names |
|
optional |
logical. If |
... |
other arguments |
A data frame is returned by the function as.data.frame
.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
metabin
, metacont
,
metagen
, forest.meta
data(Fleiss1993cont) # # Generate additional variable with grouping information # Fleiss1993cont$group <- c(1, 2, 1, 1, 2) # # Do meta-analysis without grouping information # m1 <- metacont(n.psyc, mean.psyc, sd.psyc, n.cont, mean.cont, sd.cont, data = Fleiss1993cont, sm = "SMD", studlab = paste(study, year)) # # Update meta-analysis object and do subgroup analyses # update(m1, subgroup = group) # Same result using metacont function directly # m2 <- metacont(n.psyc, mean.psyc, sd.psyc, n.cont, mean.cont, sd.cont, data = Fleiss1993cont, sm = "SMD", studlab = paste(study, year), subgroup = group) m2 # Compare printout of the following two commands # as.data.frame(m1) m1$data