coxLP: Compute the linear predictor of a Cox model

Description Usage Arguments Details Author(s)

View source: R/getCoxInfo.R

Description

Compute the linear predictor of a Cox model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
coxLP(object, data, center)

## S3 method for class 'cph'
coxLP(object, data, center)

## S3 method for class 'coxph'
coxLP(object, data, center)

## S3 method for class 'phreg'
coxLP(object, data, center)

Arguments

object

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

data

a data.frame or a data.table

center

should the linear predictor be computed after centering the covariates

Details

In case of empty linear predictor returns a vector of 0 with the same length as the number of rows of the dataset

Author(s)

Brice Ozenne broz@sund.ku.dk


riskRegression documentation built on Jan. 13, 2021, 11:12 a.m.