Learn R Programming

riskRegression (version 2022.03.22)

coxVarCov: Extract the variance covariance matrix of the beta from a Cox model

Description

Extract the variance covariance matrix of the beta from a Cox model

Usage

coxVarCov(object)

# S3 method for cph coxVarCov(object)

# S3 method for coxph coxVarCov(object)

# S3 method for phreg coxVarCov(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

Should return NULL if the Cox model has no covariate. The rows and columns of the variance covariance matrix must be named with the names used in the design matrix.