get_fp_1o_HR.Rd
Calculate the time-dependent hazard ratios obtained from fitting a first order fractional polynomial model.
get_fp_1o_HR(
x,
fit,
trt.nos,
ref.no,
trt.labs = NULL,
node = "d",
CI = TRUE,
revert = FALSE
)
A vector with the dependent variable.
An rjags object with the output from the JAGS fit.
A vector with the numerical treatment IDs for which the HRs shall be calculated (including the ref).
An integer with the numerical ID of the reference for the HR calculations.
A character vector of same length as trt.nos with the treatment labels.
A character string that identifies the node in the JAGS model giving the treatment effect estimates.
Logical, shall CIs for the fractional polynomial be given? (Medians are always provided.)
A data frame with pointwise median (and CI) HRs for all comparisons of trt.nos vs ref.no.
Requires the packages: dplyr, coda.