extractMTCResults: Extract the results of a network meta-analysis from a...

Description Usage Arguments Details See Also

View source: R/nma.R

Description

Extract the results of a network meta-analysis from a mtc.results object

Usage

1
extractMTCResults(res, resultsFile, includesPlacebo = FALSE, ...)

Arguments

res

A mtc.results object as returned by mtc.run

resultsFile

A character string indicating the path to the excel file where the results should be saved.

includesPlacebo

Logical indicating whether the network includes placebo. This requires slightly different handling internally as placebo is always the comparator and never the intervention

...

Additional arguments passed to underlying extractor functions, particularly calcAllPairs, nameTreatments and makeTab

Details

This function takes an object of class mtc.result and extracts the results for all pairwise treatment comparisons in the network. The results are returned as a data frame. This function is a wrapper that calls a series of other functions in the right order to do the actual work.

The underlying functions can be used directly provided this order is maintained however this should not usually be necessary. If you take this approach you will also need to save all the respective outputs appropriately.

The ... can be used to pass arguments to the underlying functions. The following arguments in particular will be required in almost all cases:

See Also

mtc.run, calcAllPairs, extractComparison, nameTreatments, makeTab, extractModelFit


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