View source: R/as.data.frame.metabind.R
| as.data.frame.metabind | R Documentation |
The as.data.frame method returns a data frame containing
information on meta-analysis results.
## S3 method for class 'metabind'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
common = !is.null(x$common),
random = !is.null(x$random),
prediction = !is.null(x$predict),
subgroup = !is.null(x$subgroup),
drop_all_NA = TRUE,
...
)
x |
An object of class |
row.names |
|
optional |
Argument is ignored. |
common |
A logical indicating whether to return results for the common effect model. |
random |
A logical indicating whether to return results for the random effects model. |
prediction |
A logical indicating whether to return prediction intervals. |
subgroup |
A logical indicating whether to return subgroup results in addition to the overall results. |
drop_all_NA |
A logical indicating whether to drop variables containing only missing values. |
... |
Other arguments (ignored). |
A data frame is returned by the function as.data.frame.
For subgroup results, df.Q.b is a list column containing
the complete degrees of freedom for each subgroup-difference test.
Element test.Q.b identifies chi-squared ("Q") and
F ("F") tests; unavailable types are NA.
Variance fields tau2, lower.tau2, upper.tau2,
se.tau2, tau, lower.tau, and upper.tau
are list columns containing the complete numeric vectors, including
length-one vectors for single-component analyses. Component order and
names are preserved.
For random effects and prediction results, column interval.slot
numbers the intervals within each meta-analysis and result type.
Repeated uses of the same method have different interval numbers.
Together, id and interval.slot link each subgroup result
to the corresponding overall result.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
metabind
data(Fleiss1993cont)
#
ma1 <- metacont(n.psyc, mean.psyc, sd.psyc, n.cont, mean.cont, sd.cont,
data = Fleiss1993cont, sm = "SMD", studlab = paste(study, year))
#
ma2 <- metacont(n.psyc, mean.psyc, sd.psyc, n.cont, mean.cont, sd.cont,
data = Fleiss1993cont, sm = "SMD", studlab = paste(study, year),
method.smd = "glass")
mb12 <-
metabind(ma1, ma2, name = c("Hedges' g", "Glass' delta"), common = FALSE)
as.data.frame(mb12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.