cvauroc: Command to compute cross-validated area under the curve for ROC analysis after predictive modeling for binary outcomes

被引:47
作者
Angel Luque-Fernandez, Miguel [1 ,2 ,3 ,4 ]
Redondo-Sanchez, Daniel [2 ,3 ,4 ]
Maringe, Camille [5 ]
机构
[1] London Sch Hyg & Trop Med, Epidemiol, London, England
[2] Univ Granada, Biomed Res Inst Granada ibsGRANADA, Granada, Spain
[3] Andalusian Sch Publ Hlth, Granada, Spain
[4] Biomed Network Res Ctr Epidemiol & Publ Hlth CIBE, Madrid, Spain
[5] London Sch Hyg & Trop Med, London, England
关键词
st0569; cvauroc; prediction; area under the curve; receiver operating characteristic curve; classification;
D O I
10.1177/1536867X19874237
中图分类号
O1 [数学]; C [社会科学总论];
学科分类号
03 ; 0303 ; 0701 ; 070101 ;
摘要
Receiver operating characteristic (ROC) analysis is used for comparing predictive models in both model selection and model evaluation. ROC analysis is often applied in clinical medicine and social science to assess the tradeoff between model sensitivity and specificity. After fitting a binary logistic or probit regression model with a set of independent variables, the predictive performance of this set of variables can be assessed by the area under the curve (AUC) from an ROC curve. An important aspect of predictive modeling (regardless of model type) is the ability of a model to generalize to new cases. Evaluating the predictive performance (AUC) of a set of independent variables using all cases from the original analysis sample often results in an overly optimistic estimate of predictive performance. One can use K-fold cross-validation to generate a more realistic estimate of predictive performance in situations with a small number of observations. AUC is estimated iteratively for k samples (the "test" samples) that are independent of the sample used to predict the dependent variable (the "training" sample). cvauroc implements k-fold cross-validation for the AUC for a binary outcome after fitting a logit or probit regression model, averaging the AUCs corresponding to each fold, and bootstrapping the cross-validated AUC to obtain statistical inference and 95% confidence intervals. Furthermore, cvauroc optionally provides the cross-validated fitted probabilities for the dependent variable or outcome, contained in a new variable named _fit; the sensitivity and specificity for each of the levels of the predicted outcome, contained in two new variables named _sen and _spe; and the plot of the mean cross-validated AUC and k-fold ROC curves.
引用
收藏
页码:615 / 625
页数:11
相关论文
共 11 条
[1]   Prognosis and prognostic research: validating a prognostic model [J].
Altman, Douglas G. ;
Vergouwe, Yvonne ;
Royston, Patrick ;
Moons, Karel G. M. .
BMJ-BRITISH MEDICAL JOURNAL, 2009, 338 :1432-1435
[2]   Efficient semiparametric estimation of multi-valued treatment effects under ignorability [J].
Cattaneo, Matias D. .
JOURNAL OF ECONOMETRICS, 2010, 155 (02) :138-154
[3]  
Collins GS, 2015, ANN INTERN MED, V162, P55, DOI [10.1016/j.jclinepi.2014.11.010, 10.1038/bjc.2014.639, 10.1136/bmj.g7594, 10.1016/j.eururo.2014.11.025, 10.7326/M14-0697, 10.1186/s12916-014-0241-z, 10.1002/bjs.9736, 10.7326/M14-0698]
[4]   COMPARING THE AREAS UNDER 2 OR MORE CORRELATED RECEIVER OPERATING CHARACTERISTIC CURVES - A NONPARAMETRIC APPROACH [J].
DELONG, ER ;
DELONG, DM ;
CLARKEPEARSON, DI .
BIOMETRICS, 1988, 44 (03) :837-845
[5]   An introduction to ROC analysis [J].
Fawcett, Tom .
PATTERN RECOGNITION LETTERS, 2006, 27 (08) :861-874
[6]  
Haghish E. F., 2016, GITHUB MODULE BUILDI
[7]  
James G, 2013, SPRINGER TEXTS STAT, V103, P303, DOI 10.1007/978-1-4614-7138-7_8
[8]   Computationally efficient confidence intervals for cross-validated area under the ROC curve estimates [J].
LeDell, Erin ;
Petersen, Maya ;
van der Laan, Mark .
ELECTRONIC JOURNAL OF STATISTICS, 2015, 9 (01) :1583-1607
[9]   Comments on 'Evaluating the added predictive ability of a new marker:: From area under the ROC curve to reclassification and beyond' by M. J.!Pencina et al., Statistics in Medicine [J].
Pepe, M. S. ;
Feng, Z. ;
Gu, J. W. .
STATISTICS IN MEDICINE, 2008, 27 (02) :173-181
[10]   Evaluating the ROC performance of markers for future events [J].
Pepe, Margaret S. ;
Zheng, Yingye ;
Jin, Yuying ;
Huang, Ying ;
Parikh, Chirag R. ;
Levy, Wayne C. .
LIFETIME DATA ANALYSIS, 2008, 14 (01) :86-113