ROC_table: ROC_table: extract AUC, NRI and IDI information from list of...

View source: R/roc.R

ROC_tableR Documentation

ROC_table: extract AUC, NRI and IDI information from list of roc object in pROC packages.

Description

extract AUC, NRI and IDI information from list of roc in pROC packages

Usage

ROC_table(ListModel, dec.auc = 3, dec.p = 3)

Arguments

ListModel

list of roc object

dec.auc

digits for AUC, Default: 3

dec.p

digits for p value, Default: 3

Details

extract AUC, NRI and IDI information from list of roc object in pROC packages.

Value

table of AUC, NRI and IDI information

See Also

ci.auc,roc.test data.table, rbindlist

Examples

library(pROC)
m1 <- glm(vs ~ am + gear, data = mtcars, family = binomial)
m2 <- glm(vs ~ am + gear + wt, data = mtcars, family = binomial)
m3 <- glm(vs ~ am + gear + wt + mpg, data = mtcars, family = binomial)
roc1 <- roc(m1$y, predict(m1, type = "response"))
roc2 <- roc(m2$y, predict(m2, type = "response"))
roc3 <- roc(m3$y, predict(m3, type = "response"))
list.roc <- list(roc1, roc2, roc3)
ROC_table(list.roc)

jsmodule documentation built on Oct. 18, 2023, 9:08 a.m.