netmeta (version 1.2-1)

as.data.frame.netmeta: Additional functions for objects of class netmeta

Description

The as.data.frame method returns a data frame containing information on individual studies, e.g., estimated treatment effect and its standard error.

Usage

# S3 method for netmeta
as.data.frame(x, row.names = NULL, optional = FALSE, details = FALSE, ...)

Arguments

x

An object of class netmeta.

row.names

NULL or a character vector giving the row names for the data frame.

optional

A logical. If TRUE, setting row names and converting column names (to syntactic names) is optional.

details

A logical. If TRUE, additional variables of less interest are included in data frame.

Additional arguments.

Value

A data frame is returned by the function as.data.frame.

See Also

netmeta

Examples

Run this code
# NOT RUN {
data(Senn2013)

# Conduct network meta-analysis
#
net1 <- netmeta(TE, seTE, treat1, treat2, studlab, data = Senn2013, sm = "MD")

as.data.frame(net1)
as.data.frame(net1, details = TRUE)

# }

Run the code above in your browser using DataLab