extractTOI: Extract all treatment comparisons involving a specific...

Description Usage Arguments Details Value See Also

View source: R/nma.R

Description

Extract all treatment comparisons involving a specific treatment if interest

Usage

1
2
extractTOI(df, treatments, toi, intervention = TRUE,
  reportOrder = "default")

Arguments

df

A data frame as produced by extractMTCResults

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 orderResults=TRUE

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 df is searched to identify relevant treatment comparisons

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 treatments must contain a column named 'Order', see above.

Details

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:

  1. To return results for a given intervention of interest compared to all other treatments in the network

  2. To return results for all interventions compared to a given control treatment, e.g. placebo.

Value

A data frame containing all treatment comparisons involving the specified treatment of interest.

See Also

extractMTCResults


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