ROC Curves

Modified on Mon, 8 Jul at 11:22 AM

What are ROC Curves?

A ROC (Receiver Operating Characteristic) curve is a graphical plot that illustrates the diagnostic ability of a continuous variable to classify a binary outcome (Yes-No) as either "Yes" or "No". It represents the sensitivity and specificity for each threshold of the continuous variable, providing insight into the variable's ability to correctly classify individuals based on the binary outcome.

For example, blood glucose levels could be used to diagnose diabetes. For each blood glucose level, we can assess its ability to detect diabetes (sensitivity) and exclude non-diabetes (specificity). The ROC curve plots these values, offering a visual representation of the test's performance across all possible thresholds.



How to Generate ROC Curves and AUC?

  1. Go to "Test variables".
  2. Select a binary (Yes-No) variable (e.g., "Diabetes").
  3. Select a numeric variable (e.g., "blood glucose").
  4. Click on the "ROC curves" panel.

Several ROC curve templates will be displayed, along with the area under the curve (AUC). The software will automatically select the positive class and direction that ensures an AUC ≥ 0.500, optimizing the analysis for meaningful results.


How to Compare Several ROC Curves?

To compare multiple ROC curves:

  1. Go to "Test variables".
  2. Select a binary (Yes-No) variable.
  3. Select the first numeric variable.
  4. Select one or more additional numeric variables.
  5. Click on the "ROC curves" panel.

A statistical test, specifically DeLong's test, is automatically used to compare the AUCs of the ROC curves.


How to Calculate Sensitivity and Specificity for a Given Threshold?

  1. Generate one or several ROC curves as described above.
  2. Click on the panel "Sensitivity and Specificity".

Sensitivity and specificity are provided for each threshold of the numeric variable, allowing for detailed evaluation of the variable's diagnostic performance.


How to Change the Positive Class or the Direction of the Association?

To change the positive class or the direction of the association in your ROC curve analysis:

  1. Go to the "ROC Options" panel within the ROC curve section.
  2. Positive Class: Select either "Yes" or "No" to define the positive class for your analysis.
  3. Direction:Choose whether higher values or lower values are associated with the positive class.
    • Select "Higher values are associated with the positive class" if you want higher values of the numeric variable to indicate the positive outcome.
    • Select "Lower values are associated with the positive class" if you want lower values of the numeric variable to indicate the positive outcome.
  4. Strict Operators: Choose to use strict (< or >) or non-strict (≤ or ≥) operators in your calculations.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article