I am trying to compute a 95% confidence interval for the area under an ROC curve using the pROC package. The estimate for the area has a value of 0.9092, which looks fine. However, the estimate for the confidence interval is "0.95% CI: 0-0 (DeLong)", which I don't understand.
I'm wondering what could cause this to happen. I am simply using a vector of responses and a vector of predictors with the ci function. The responses are coded as 0-1 (numeric, not factor) and the predictor is a single floating point number.
I have roughly 115,000 controls and 34,000 cases in case this makes a difference.
Update: It seems to be either a size or a number of duplicated observations issue
> ci.auc(s3$def_ca, s3$PD1YR)
95% CI: 0.6979-0.7265 (DeLong)
> ci.auc(rep(s3$def_ca, 3), rep(s3$PD1YR, 3))
95% CI: 0.7039-0.7204 (DeLong)
> ci.auc(rep(s3$def_ca, 30), rep(s3$PD1YR, 30))
95% CI: 1-1 (DeLong)