Learn R Programming

polle (version 1.6.2)

c_model: c_model class object

Description

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().

Usage

c_cox(formula = ~., offset = NULL, weights = NULL, ...)

c_no_censoring()

Value

A c-model object (function) with arguments:

  • event: censoring events

  • time: start time

  • time2: end time

  • H: history matrix

Arguments

formula

An object of class formula specifying the design matrix for the right-censoring model. Use get_history_names() to view the available variable names.

offset

offsets for Cox model, see mets::phreg()

weights

weights for Cox score equations, see mets::phreg()

...

Additional arguments passed to the model.

Details

c_cox() is a wrapper of mets::phreg() (Cox proportional hazard model).

See Also

get_history_names().