| c_model | R Documentation |
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()
formula |
An object of class formula specifying the design matrix for
the right-censoring model. Use |
offset |
offsets for Cox model, see |
weights |
weights for Cox score equations, see |
... |
Additional arguments passed to the model. |
c_cox() is a wrapper of mets::phreg() (Cox proportional hazard model).
A c-model object (function) with arguments:
event: censoring events
time: start time
time2: end time
H: history matrix
get_history_names().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.