summarize_cv_survdnn | R Documentation |
Computes mean, standard deviation, and confidence intervals for metrics from cross-validation.
summarize_cv_survdnn(cv_results, by_time = TRUE, conf_level = 0.95)
cv_results |
A tibble returned by [cv_survdnn()]. |
by_time |
Logical. Whether to stratify results by 'time' (if present). |
conf_level |
Confidence level for the intervals (default: 0.95). |
A tibble summarizing mean, sd, and confidence bounds per metric (and per time if applicable).
library(survival)
data(veteran)
res <- cv_survdnn(
Surv(time, status) ~ age + karno + celltype,
data = veteran,
times = c(30, 90, 180, 270),
metrics = c("cindex", "ibs"),
folds = 3,
.seed = 42,
hidden = c(16, 8),
epochs = 5
)
summarize_cv_survdnn(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.