CompreCoxCstat | R Documentation |
Compares Cox models based on two sets of predictors with respect to their C-statistics via K-fold cross validation.
CompreCoxCstat(status, time, x1, x2, folds = 10, simple_cstat = TRUE)
status |
Event status. |
time |
Event time. |
x1 |
Model matrix for the first model. |
x2 |
Model matrix for the second model. |
folds |
Cross validation folds. |
simple_cstat |
If TRUE uses the unweighted C-stat, otherwise uses the inverse probability of censoring weighted C-stat. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.