calculate_Uno_c {BlanketStatsments}R Documentation

Calculate Uno's C for a given model.

Description

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.

Usage

calculate_Uno_c(df, model, verbose = FALSE)

Arguments

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.

Value

double AUC value for the evaluated model on the specified data set.

Author(s)

J. Peter Marquardt

Examples

data <- survival::lung
cancer_mod <- survival::coxph(survival::Surv(time, status)~age, data = data)
calculate_Uno_c(data, cancer_mod)


[Package BlanketStatsments version 0.1.2 Index]