| cv_frailty | R Documentation |
K-Fold Cross Validation for MultiFrailty Models
cv_frailty(
time,
status,
x = matrix(nrow = length(time), ncol = 0),
baseline = "weibull",
frailty = "gamma",
k = 5L,
time2 = NULL
)
time |
Time vector. |
status |
Status vector. |
x |
Covariate matrix. |
baseline |
Baseline distribution. |
frailty |
Frailty distribution. |
k |
Number of folds. Default is 5L. |
time2 |
Optional upper interval bound vector. |
Out-of-sample total log-likelihood score.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.