Calculate the survivor functions estimated in piecewise-constant NMA model. The absolute S(t) estimates combining the estimated baseline survival from a reference trial (in the NMA) with the piecewise-constant hazard ratio estimates to construct the S(t) functions for each treatment.

get_pwe_S(
  fit,
  ref.std,
  ref.arm,
  treatments = NULL,
  time = 0:24,
  bl.node = "mu",
  contrast.node = "d"
)

Arguments

fit

JAGS object with NMA fit.

ref.std

Numeric identifier of reference study to use for baseline survival estimate.

ref.arm

Numeric identifier of arm in reference study to use for baseline survival estimate.

treatments

Vector with character strings to label the treatments. If NULL treatments extracted from fit

time

Vector of time-points at which S(t) functions are calculated.

bl.node

Charactor to identify the node in the jags model that identifies the baseline estimates (default is "mu").

contrast.node

Charactor to identify the node in the jags model that identifies the baseline estimates (default is "d").

Value

a data.frame containing survivor function for each treatment