View source: R/as.data.frame.netmeta.R
as.data.frame.netmeta | 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 'netmeta'
as.data.frame(x, row.names = NULL, optional = FALSE, details = FALSE, ...)
x |
An object of class |
row.names |
|
optional |
A logical. If |
details |
A logical. If |
... |
Additional arguments. |
A data frame is returned by the function
as.data.frame
.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
netmeta
data(smokingcessation)
# Transform data from arm-based format to contrast-based format
#
p1 <- pairwise(list(treat1, treat2, treat3),
event = list(event1, event2, event3), n = list(n1, n2, n3),
data = smokingcessation, sm = "OR")
# Conduct random effects network meta-analysis and show data frame
#
net1 <- netmeta(p1, common = FALSE)
as.data.frame(net1)
## Not run:
data(Senn2013)
# Conduct network meta-analysis
#
net2 <- netmeta(TE, seTE, treat1, treat2, studlab,
data = Senn2013, sm = "MD")
as.data.frame(net2)
as.data.frame(net2, details = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.