Learn R Programming

riskRegression (version 2022.03.22)

coxN: Extract the number of observations from a Cox model

Description

Extract the number of observations from a Cox model

Usage

coxN(object)

# S3 method for cph coxN(object)

# S3 method for coxph coxN(object)

# S3 method for phreg coxN(object)

# S3 method for CauseSpecificCox coxN(object)

# S3 method for glm coxN(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