Provides constructors for right-censoring models. Main constructors include:
c_cox(): Cox proportional hazards model
c_no_censoring(): Model for scenarios without censoring
The constructors are used as input for policy_eval() and policy_learn().
c_cox(formula = ~., offset = NULL, weights = NULL, ...)c_no_censoring()
A c-model object (function) with arguments:
event: censoring events
time: start time
time2: end time
H: history matrix
An object of class formula specifying the design matrix for
the right-censoring model. Use get_history_names() to view the available
variable names.
offsets for Cox model, see mets::phreg()
weights for Cox score equations, see mets::phreg()
Additional arguments passed to the model.
c_cox() is a wrapper of mets::phreg() (Cox proportional hazard model).
get_history_names().