formatDataToDirectMA: Rearrange data from gemtc input format to a format suitable...

Description Usage Arguments Value See Also

View source: R/direct.R

Description

Rearrange data from gemtc input format to a format suitable for direct meta-analysis

Usage

1
formatDataToDirectMA(input.df, dataType)

Arguments

input.df

data.frame This should be in one of two formats. Arm level data must contain the columns 'study' and 'treatment' where study is a study id number (1, 2, 3 ...) and treatment is a treatment id number. If the data are binary then the data frame should also contain columns 'responders' and 'sampleSize' reporting the total number of events and total number analysed respectively for each arm. Relative effect data (e.g. log odds ratio, log rate ratio) must contain the same study and treatment columns plus the columns 'diff' and 'std.err'. Set diff=NA for the baseline arm. The column std.err should be the standard error of the relative effect estimate. For trials with more than two arms set std.err as the standard error of the baseline arm. This determines the covariance which is used to adjust for the correlation in multiarm studies.

dataType

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

Value

A data frame

See Also

mtc.network


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