Description Usage Arguments Details Value See Also
Match treatment names to ID numbers
1 | nameTreatments(results, coding, ...)
|
results |
A data frame as returned by |
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. |
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.
The same data frame with the treatment names appended
extractComparison
, calcAllPairs
, extractMTCResults
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.