You are not logged in. You can browse but not post. Login or Register by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the FAQ.
After running 2 different logistic regressions with the predict command and then running roccomp- how do we calculate the 95% confidence interval for the difference in AUC? STATA only spits out the p-value and X2.
Thank you, Natalie. There are two ways yon can go about this:
1) if you only care whether the AUC values are different for each model, then it is sufficient to use a likelihood ratio test to compare the nested model, and the point estimate of this difference is the difference in AUC estimates. The justiifcation is provided in Pepe et al (2013).
2) if a confidence interval is in addition is desired (as your post suggests) then Zou and Yue's methodology is appropriate for correlated AUC statistics.
Pepe, M. S., Kerr, K. F., Longton, G., & Wang, Z. (2013). Testing for improvement in prediction model performance. Statistics in Medicine, 32(9), 1467–1482. https://doi.org/10.1002/sim.5727
Zou, G. Y., & Yue, L. (2013). Using confidence intervals to compare several correlated areas under the receiver operating characteristic curves. Statistics in Medicine, 32(29), 5077–5090. https://doi.org/10.1002/sim.5889
. . . running roccomp- how do we calculate the 95% confidence interval for the difference in AUC? STATA only spits out the p-value and X2.
You can use that chi-square test statistic to compute the confidence interval. Unfortunately, you also need the individual ROC AUCs, too, and although -roccomp- displays them both, it doesn't return them. (Note to StataCorp: this seems like an oversight.) So, you'll have to get them individually from -roctab-. Once you have them, you can compute the confidence bounds. The individual steps are illustrated below using the autos dataset, and the result is cross-checked against what bootstrapping the difference gives.
The simple computation from the chi-square test statistic returned by -roccomp- (SE = 0.126; 95% CI = [-0.096, 0.399]) is confirmed in the Normal-based interval from bootstrapping (SE = 0.126, 95% CI = [-0.095, 0.399]).
In your case, both ROC AUCs are pretty poor (< 0.7) and so their difference might not be worth worrying too much about; nevertheless, you might want to check on the coverage of the CI computed in this way by using simulation under conditions (sample size, proportion of positive cases, difference in predicted cases) similar to those obtained with your particular dataset.
Comment