CVAUROC: Stata module to compute Cross-validated Area Under the Curve for ROC Analysis after Predictive Modelling for Binary Outcomes
Miguel Angel Luque-Fernandez (),
Camille Maringe () and
Paul Nelson ()
Additional contact information
Miguel Angel Luque-Fernandez: LSHTM, NCDE, Cancer Survival Group, London, UK
Camille Maringe: LSHTM, NCDE, Cancer Survival Group, London, UK
Paul Nelson: Bureau of Crime Statistics and Research, NSW Department of Justice
Statistical Software Components from Boston College Department of Economics
Abstract:
Receiver operating characteristic (ROC) analysis is used for comparing predictive models, both in model selection and model evaluation. This method is often applied in clinical medicine and social science to assess the tradeoff between model sensitivity and specificity. After fitting a binary logistic regression model with a set of independent variables, the predictive performance of this set of variables - as assessed by the area under the curve (AUC) from a ROC curve - must be estimated for a sample (the 'test' sample) that is independent of the sample used to predict the dependent variable (the 'training' sample). 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 tends to result in an overly optimistic estimate of predictive performance. K-fold cross-validation can be used to generate a more realistic estimate of predictive performance. To assess this ability in situations in which the number of observations is not very large, cross-validation and bootstrap strategies are useful. cvauroc implements k-fold cross-validation for the AUC for a binary outcome after fitting a logistic regression model, averaging the AUCs corresponding to each fold and bootstrapping the cross-validated AUC to obtain statistical inference.
Language: Stata
Requires: Stata version 10.1
Keywords: ROC; receiver curve; logistic; cross-validation; AUC (search for similar items in EconPapers)
Date: 2017-03-14, Revised 2022-05-15
Note: This module should be installed from within Stata by typing "ssc install cvauroc". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/c/cvauroc.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cvauroc.sthlp help file (text/plain)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s458324
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().