nameTreatments: Match treatment names to ID numbers

Description Usage Arguments Details Value See Also

View source: R/nma.R

Description

Match treatment names to ID numbers

Usage

1
nameTreatments(results, coding, ...)

Arguments

results

A data frame as returned by extractComparison

coding

A data frame with two columns 'id' and 'description'. 'id' must be the treatment id numbers corresponding to the way the treatments were coded in the network. 'description' should be the name of the treatment.

Details

This function matches the coded treatment id numbers in the network to the corresponding human readable names. The mapping from id number to name should be provided as a two column data frame via the coding argument. This function is intended to work on the data frame generated as the output from extractComparison. This function will mainly be called via extractMTCResults and should only be used directly if you understand what you are doing. The general work flow is mtc.run > calcAllPairs > extractComparison > nameTreatments > makeTab. extractMTCResults will handle the last four steps for you.

Value

The same data frame with the treatment names appended

See Also

extractComparison, calcAllPairs, extractMTCResults


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