I have 4 different parameters (HRTT, MRWT, HRWT and RNFLT) and am plotting sensitivity versus specificity curves for each. I want to:
- Find the partial area under the ROC curve (pAUC) for each parameter (for specificities in the range 90-100%) and the confidence interval around this pAUC for each parameter.
- Compare the pAUCs to evaluate which pAUC is statistically highest.
For 1., I calculated the pAUC estimate for HRTT:
auc(rocHRTT, partial.auc=c(100, 90), partial.auc.focus="spec",percent=TRUE, partial.auc.correct=TRUE, ci=TRUE)
I then calculated the CI around this by:
ci.auc(rocHRTT, partial.auc=c(100, 90), partial.auc.focus="spec",percent=TRUE, partial.auc.correct=TRUE, ci=TRUE)
I then repeated this for MRWT, HRTW and RNFLT.
For some reason, the estimate of pAUC often lies outside the CI for pAUC and I can't figure out why. For instance, MRWT the pAUC is 71%, but the CI is 77-91%!
For 2., I know that the function roc.test
can be used to compare 2 pAUCs, but how can I compare 4 areas to evaluate which is highest?