doDirectMeta: Perform multiple direct head to head meta-analyses from a...

Description Usage Arguments Details Value See Also

View source: R/direct.R

Description

Perform multiple direct head to head meta-analyses from a single data frame

Usage

1
doDirectMeta(df, effectCode, dataType, backtransf = FALSE, method = "MH")

Arguments

df

A data frame as returned by formatDataToDirectMA

effectCode

A character string indicating the underlying effect estimate. This is used to set the sm argument of the underlying analysis functions from the meta package. Acceptable values are 'RD', 'RR', 'OR', 'HR', 'ASD', 'MD', 'SMD'

dataType

A character string specifying which type of data has been provided. Must be one of 'treatment difference', 'binary' or 'continuous'

backtransf

A logical indicating whether results should be back transformed. This is used to set the corresponding backtransf argument of the underlying functions from the meta package. If backtransf=TRUE then log odds ratios (or hazard ratios etc) will be converted to odds ratios on plots and print outs

method

A character string indicating which method is used for pooling studies. This argument is only applicable if data_type='binary'. Must be one of 'MH' (Default, Mantel-Haenszel method), 'inverse' or 'Peto'

Details

This function provides a wrapper around the metagen or metabin functions from the meta package to one or more analyses to be carried out from a single data frame. This is most useful when direct meta-analysis is required to support all pairwise comparisons in a network meta-analyis or effect estimates are required for multiple pairs of treatments to perform simple indirect meta-analysis using the Bucher method

Value

A data frame

See Also

formatDataToDirectMA, metagen, metabin


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