extractDirectRes: Extract summary results for a direct meta-analysis

Description Usage Arguments Details Value See Also

View source: R/direct.R

Description

Extract summary results for a direct meta-analysis

Usage

1
2
extractDirectRes(metaRes, effect, intervention = "Int", comparator = "Con",
  interventionCode = NA, comparatorCode = NA, backtransf = FALSE)

Arguments

metaRes

An object of class c("metagen", "meta") or c("metabin", "meta"). These objects are lists containing the results of direct meta-analysis. See metagen, metabin for a description of exactly what is contained in the list

effect

a character string describing the effect estimate, e.g. 'Rate Ratio', 'Odds Ratio', 'Hazard Ratio'

intervention

A character string describing the name of the intervention. Defaults to 'Int' if not provided

comparator

A character string describing the name of the comparator. Defaults to 'Con' if not provided

backtransf

A logical indicating whether results should be back transformed. If backtransf=TRUE then log odds ratios (or hazard ratios etc) will be converted to odds ratios on plots and print outs.

Details

This function extracts the results of a meta-analysis from a list-type object produced by the meta package and returns them as a data frame. If there is only one study comparing two treatments then no meta-anlaysis is performed but the results of the primary study are included in the output. In this case the fields Model, Tau.sq, method.tau and I.sq in the output will be blank as these fields have no meaning for a single study. This is useful if you want to use these results to perform simple indirect (Bucher) analyses.

If more than one study is available then both fixed effect and random effects results will be returned

Value

A data frame with the following columns:

See Also

metagen, metabin


RichardBirnie/mautils documentation built on July 12, 2019, 8:56 p.m.