
Estimate restricted mean survival time (RMST) based on Cox regression model
Source:R/utility_surv.R
cox.rmst.Rd
Estimate restricted mean survival time (RMST) based on Cox regression model
Arguments
- y
Observed survival or censoring time; vector of size
n
.- d
The event indicator, normally
1 = event, 0 = censored
; vector of sizen
.- x.cate
Matrix of
p.cate
baseline covariates specified in the outcome model; dimensionn
byp.cate
.- xnew
Matrix of
p.cate
baseline covariates for which we want an estimate of the RMST; dimensionm
(observations in the new data set) byp.cate
- tau0
The truncation time for defining restricted mean time lost.