Utility function to extract probabilities of new treatment being better from gemtc fit (e.g. P(HR<1) for HRs new vs other).

get_mtc_probBetter(
  x,
  new.lab,
  smaller.is.better = TRUE,
  threshold = 0,
  sort.by = c("name", "effect")[1],
  digits = 3
)

Arguments

x

Object of class mtc.result containing the NMA fit.

new.lab

Character string with name of new intervention.

smaller.is.better

Logical (default is TRUE).

threshold

Numerical value (default is 0) giving the threshold against which contrasts are being compared.

sort.by

Character string, must be either "name" or "effect" (default), indicating the sorting of the output table.

digits

Integer (default is 3); if provided, outputs will be rounded accordingly.

Value

A data.frame of probabilities of a treatment being better from a mtc model