calculate_Uno_c: Calculate Uno's C for a given model.

Description Usage Arguments Value Author(s) Examples

View source: R/Blanket_statsments.R

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

1
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

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

BlanketStatsments documentation built on Aug. 2, 2021, 9:06 a.m.