Learn R Programming

riskRegression (version 2020.02.05)

coxFormula: Extract the formula from a Cox model

Description

Extract the formula from a Cox model

Usage

coxFormula(object)

# S3 method for cph coxFormula(object)

# S3 method for coxph coxFormula(object)

# S3 method for phreg coxFormula(object)

# S3 method for glm coxFormula(object)

Arguments

object

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