c_model: c_model class object

c_modelR Documentation

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

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

Value

A c-model object (function) with arguments:

  • event: censoring events

  • time: start time

  • time2: end time

  • H: history matrix

See Also

get_history_names().


polle documentation built on Dec. 1, 2025, 5:08 p.m.