Compute the linear predictor of a Cox model
coxLP(object, data, center)# S3 method for cph
coxLP(object, data, center)
# S3 method for coxph
coxLP(object, data, center)
# S3 method for phreg
coxLP(object, data, center)
The fitted Cox regression model object either
obtained with coxph
(survival package), cph
(rms package), or phreg
(mets package).
a data.frame
or a data.table
should the linear predictor be computed after centering the covariates
Brice Ozenne broz@sund.ku.dk
In case of empty linear predictor returns a vector of 0 with the same length as the number of rows of the dataset