calculate_Uno_c {BlanketStatsments} | R Documentation |
Calculate Uno's concordance statistic for any model. CAVE: If you want to evaluate a model trained on a different dataset, df should be limited to the test set.
calculate_Uno_c(df, model, verbose = FALSE)
df |
data.frame containing the data set. If evaluating independently, use the test set. |
model |
statistical model of type coxph to be evaluated. |
verbose |
logical. TRUE activates printout messages. |
double AUC value for the evaluated model on the specified data set.
J. Peter Marquardt
data <- survival::lung
cancer_mod <- survival::coxph(survival::Surv(time, status)~age, data = data)
calculate_Uno_c(data, cancer_mod)