Description Usage Arguments Details Value See Also
Extract all treatment comparisons involving a specific treatment if interest
1 2 | extractTOI(df, treatments, toi, intervention = TRUE,
reportOrder = "default")
|
df |
A data frame as produced by |
treatments |
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. An optional third column named 'Order' may also be provided. If
present this controls the order in which treatments are presented in the
output. The values should be a sequence of numbers indicating the order in
which the treatments should be sorted. If the 'Order' column is present
then set |
toi |
An integer specifying the id number of the treatment of interest in the network |
intervention |
Logical indicating whether the treatment of interest is
an intervention or a comparator (e.g. placebo). This controls which column
of |
reportOrder |
A character string indicating whether the treatments
should be reported in the order the order they were provided (default) or
if a custom order is required. Acceptable values are 'default' or
'custom'. If this is set to 'custom' then |
This is a simple filtering function to return all treatment
comparisons involving a specific treatment of interest. This function is
designed to be used with the output of extractMTCResults
. There are
two intended use cases:
To return results for a given intervention of interest compared to all other treatments in the network
To return results for all interventions compared to a given control treatment, e.g. placebo.
A data frame containing all treatment comparisons involving the specified treatment of interest.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.