cox.rmst | R Documentation |
Estimate restricted mean survival time (RMST) based on Cox regression model
cox.rmst(y, d, x.cate, xnew, tau0)
y |
Observed survival or censoring time; vector of size |
d |
The event indicator, normally |
x.cate |
Matrix of |
xnew |
Matrix of |
tau0 |
The truncation time for defining restricted mean time lost. |
The estimated RMST for new subjects with covariates xnew
; vector of size m
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.