get_fp_2o_S.Rd
Calculate the survivor functions estimated in a 2nd order fractional polynomial NMA model. The absolute S(t) estimates combining the estimated baseline survival from a reference trial (in the NMA) with the fractional polynomial (log)hazard ratio estimates to construct the S(t) functions for each treatment.
get_fp_2o_S(
fit,
ref.std,
ref.arm,
treatments,
time = 1:24,
bl.node = "mu",
contrast.node = "d"
)
JAGS object with FP NMA fit.
Numeric identifier of reference study to use for baseline survival estimate.
Numeric identifier of arm in reference study to use for baseline survival estimate.
Vector with character strings to label the treatments.
Vector of time-points at which S(t) functions are calculated.
Charactor to identify the node in the jags model that identifies the baseline estimates (default is "mu").
Charactor to identify the node in the jags model that identifies the baseline estimates (default is "d").
a data.frame
containing survivor function for each treatment
The FP parameters to calculate the log-hazard curves for each survivor function are combinations bl.node + contrast.node
. This means the combination ref.std, ref.arm
must identify a study arm in the NMA that used the (NMA) reference treatment. The basic parameters (contrasts vs reference) are then added to optain the parameters for each treatment in the study.