makeTab: Generate a square grid reporting all pairwise comparisons of...

Description Usage Arguments Details Value See Also

View source: R/nma.R

Description

Generate a square grid reporting all pairwise comparisons of treatments in the network

Usage

1
makeTab(results, coding, rounding = 2, reportOrder = "default", ...)

Arguments

results

A data frame as returned by nameTreatments

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. 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 reportOrder should be set to 'custom'

rounding

The number of decimal places to be included in the output. The default is two.

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 coding must contain a column named 'Order'. See above.

...

Arguments passed from other functions, primarily extractMTCResults

Details

This function takes a data frame as returned by nameTreatments and returns a square grid containing all pairwise treatment comparisons in the network. The results are presented for column versus row. This is a common approach to reporting MTC results. This function should mainly be used via extractMTCResults

Value

A data frame

See Also

extractMTCResults, nameTreatments


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