Calculate the survivor function estimates for each study and arm. Calculate also the observed survival curves from the binned KM data to compare observed and estimated survivor functions.

get_pwe_GoF(
  fit,
  data.arms,
  data.jg,
  time = 0:60,
  bl.node = "mu",
  contrast.node = "d"
)

Arguments

fit

JAGS object with NMA fit.

data.arms

Data frame with one line per study arm and columns study, treatment, studyn, treatmentn.

data.jg

List with input data set that was used in jags 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

data.frame