Learn R Programming

riskRegression (version 2022.03.22)

coxSpecial: Special characters in Cox model

Description

Return the special character(s) of the Cox model, e.g. used to indicate the strata variables.

Usage

coxSpecial(object)

# S3 method for coxph coxSpecial(object)

# S3 method for cph coxSpecial(object)

# S3 method for phreg coxSpecial(object)

Arguments

object

The fitted Cox regression model object either obtained with coxph (survival package), cph (rms package), or phreg (mets package).

Author

Brice Ozenne broz@sund.ku.dk

Details

Must return a list with at least one element strata indicating the character in the formula marking the variable(s) defining the strata.