test_auc: Calculate the Test-AUC

Description Usage Arguments Value Examples

Description

Calculate the Test-AUC

Usage

1
test_auc(fit)

Arguments

fit

A caret logistic regression model

Value

The AUC value as numeric vector with length 1

Examples

1
2
3
4
5
data(pedis)
X_y <- prepare_X_y(pedis, outcome = "minor_amputation", vars = c("p", "d"))
folds <- create_folds(y = X_y$y)
fit <- train_pedis(X = X_y$X, y = X_y$y, folds = folds)
test_auc(fit)

jnshsrs/PEDISdata documentation built on June 24, 2019, 12:07 p.m.