Skip to content
Prev 370084 / 398503 Next

Jagged ROC curves?

Hi Brian,

Your underlying dataset for the ROC curve only has 4 unique values for specificity, even though there are 23 elements in the vector, hence the step function nature of the first plot.

The default smoothing in the smooth() function is "binormal". You might try one of the other smoothing options to see the result and whether they make visual sense.

In the absence of smoothing, there will always be a step function, but some will look "more smooth" than others depending upon your data and how the thresholds are defined for the underlying metrics. The more unique thresholds there are over the range, the smoother the step function will look.

Regards,

Marc