Closed topepo closed 8 years ago
The difference is that a smoothed ROC curve has no threshold. I realize that the doc of smooth.roc
is wrong.
The result is that coords has input="specificity"
and ret=c("specificity", "sensitivity")
for a smooth.roc
(instead of input="threshold"
and ret=c("threshold", "specificity", "sensitivity")
), which is probably the difference you are seeing.
To convince yourself that it is correct, you can overlay the curve predicted by coords
to the curves you've just plotted:
lines(coord_smooth[,"specificity"], coord_smooth2[,"sensitivity"], col="white", lty=2, lwd = 2)
I think that there is an issue when using
coords
and a smoothed curve. The format of results are different between smooth and unsmoothed curves and I suspect that the threshold is being returned in place of the specificity when smoothing is used.For example:
The results are very different:
Thanks,
Max