Skip to contents

Create a formatted league table from a fitted network meta-analysis

Usage

network_league_table(
  object,
  seq = NULL,
  ci = TRUE,
  backtransf = FALSE,
  digits = 2,
  text_NA = ".",
  bracket = c("[", "]"),
  separator = ", "
)

Arguments

object

A fitted nma_mars object.

seq

Optional treatment order for rows and columns.

ci

Logical; if TRUE, include confidence limits in each cell.

backtransf

Logical; if TRUE, exponentiate estimates and intervals, useful for log odds ratios, log risk ratios, and log hazard ratios.

digits

Number of decimal places.

text_NA

Text used for unavailable cells.

bracket

Length-two character vector used around confidence intervals.

separator

Separator placed between lower and upper confidence limits.

Value

A character matrix with one row and column per treatment.

Examples

# \donttest{
network_league_table(nma_fit)
#>   A                     B                     C                   
#> A "-"                   "0.19 [-0.08, 0.46]"  "0.32 [-0.01, 0.65]"
#> B "-0.19 [-0.46, 0.08]" "-"                   "0.12 [-0.19, 0.44]"
#> C "-0.32 [-0.65, 0.01]" "-0.12 [-0.44, 0.19]" "-"                 
# }