coxN: Extract the number of observations from a Cox model

View source: R/coxN.R

coxNR Documentation

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 class 'cph'
coxN(object)

## S3 method for class 'coxph'
coxN(object)

## Default S3 method:
coxN(object)

## S3 method for class 'phreg'
coxN(object)

## S3 method for class 'CauseSpecificCox'
coxN(object)

## S3 method for class 'glm'
coxN(object)

## S3 method for class 'prodlim'
coxN(object)

## S3 method for class 'GLMnet'
coxN(object)

Arguments

object

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

Author(s)

Brice Ozenne broz@sund.ku.dk


riskRegression documentation built on June 8, 2025, 11:33 a.m.