Reporting results

How to Make and Report a ROC Curve in SPSS (APA 7 Example)

AUC = .88, 95% CI [.83, .93], SE = .02, p < .001. Run ROC analysis in SPSS, report the AUC with 95% CI and p value. APA 7 format example.

By , founder of KyroStat · Updated 2 Dec 2026

A ROC curve (receiver operating characteristic curve) plots sensitivity (true positive rate) versus 1-specificity (false positive rate) across all possible classification thresholds for a binary classifier. It answers: "As I change the threshold for calling something positive, how does my ability to correctly identify positive cases change, and what do I sacrifice in false positives?" The area under the curve (AUC) summarizes discrimination ability in one number: .5 means no discrimination (the classifier is as good as a coin flip), and 1.0 means perfect discrimination.

This guide covers running a ROC analysis in SPSS and reporting the results in APA 7 format. It assumes you have a binary outcome (yes/no, disease/no disease, positive/negative) and a continuous score or predicted probability from a logistic regression, classifier, or test.

What you need

  1. A binary outcome column: coded 0/1, yes/no, or positive/negative. SPSS will ask which one is the event of interest.
  2. A score or predicted probability column: a continuous variable. For logistic regression, use the predicted probability. For a diagnostic test, use the score or measurement value.
  3. SPSS Statistics: the ROC Curve procedure (Analyze > Classify > ROC Curve) is in every recent version; version 26 added a second procedure, ROC Analysis, that can also compare curves.

The ROC Curve: Sensitivity and Specificity at Each Threshold

As you move the classification threshold (the cutoff score above which you call someone positive), sensitivity and specificity trade off. High sensitivity (few false negatives) means more false positives. High specificity (few false positives) means more false negatives. The ROC curve shows this tradeoff.

  • Sensitivity (true positive rate, recall): of all actual positives, how many did your classifier identify? Sensitivity = TP / (TP + FN).
  • Specificity (true negative rate): of all actual negatives, how many did your classifier correctly identify? Specificity = TN / (TN + FP).
  • 1-Specificity (false positive rate): of all actual negatives, how many did your classifier incorrectly call positive? 1-Specificity = FP / (TN + FP).

The ROC curve plots (1-Specificity, Sensitivity) for each threshold, moving from bottom-left (threshold very high: few positives predicted, high specificity, low sensitivity) to top-right (threshold very low: many positives predicted, low specificity, high sensitivity).

The area under the curve (AUC) is the probability that your classifier ranks a randomly chosen positive higher than a randomly chosen negative. AUC = .5 (the diagonal line) means random guessing; AUC = 1.0 (the top-left corner) means perfect separation.

A worked example

A hospital tested a new risk score to screen for a disease. The score ranges from 0 to 100; higher scores indicate greater disease risk. Researchers administered the test to 200 patients: 100 with the disease and 100 without. They want to evaluate the score's ability to discriminate disease from no disease.

Data: risk_score (0 to 100) and disease (0 = no disease, 1 = disease).

ROC Curve Results:

AUC = .88, 95% CI [.83, .93], SE = .02, p < .001.

CutoffSensitivitySpecificity1-Specificity
01.00.001.00
251.00.06.94
50.94.63.37
75.24.99.01
100.001.00.00

The ROC Curve:

ROC curve showing sensitivity vs 1-specificity, with AUC = .88

The curve is well above the diagonal (AUC = .5 line), indicating the score has useful discrimination ability. At a threshold of 50, the score achieves .94 sensitivity and .63 specificity; at 75, it is more selective (.99 specificity) but misses more cases (.24 sensitivity).

How to run a ROC analysis in SPSS

Step 1: Set up your data

Create two columns:

  • disease (the outcome): coded 0 for no disease, 1 for disease. Or use yes/no; SPSS will ask which is the event.
  • risk_score (the classifier): continuous values. If you have predicted probabilities from a logistic regression, use those.

Step 2: Choose the ROC procedure

Click Analyze > Classify > ROC Curve. This is the procedure the steps below follow. In SPSS 26 and later, Analyze > Classify > ROC Analysis is also available; use it when you want to test the difference between two curves.

Step 3: Set the variables

  1. Move disease (or your outcome) to State Variable.
  2. In the Value of State Variable box, enter the code for the event (the positive case). If your column uses 0 and 1, enter 1. If it uses "yes" and "no", enter yes.
  3. Move risk_score to Test Variable(s).

Step 4: Request statistics and plots

Under Display in the same dialog:

  • Tick ROC Curve to draw the plot, and With diagonal reference line to add the chance line.
  • Tick Standard error and confidence interval to get the AUC's standard error, 95% CI and p value.
  • Tick Coordinate points of the ROC Curve to get sensitivity and 1 - specificity at every cutoff.

The Options button sets the test direction (whether a larger score means a positive result), the standard error assumption and the confidence level. SPSS has no Youden option: compute J = sensitivity + specificity - 1 for each row of the coordinates table (specificity is 1 minus the printed 1 - Specificity column) and take the row with the largest J.

Step 5: Run and interpret

Click OK. SPSS prints:

  • Area Under the Curve table: AUC, standard error, 95% CI (reported as "Asymptotic 95% Confidence Interval"), and a significance test (H0: AUC = .5).
  • Coordinates of the Curve table: sensitivity and specificity at each threshold.
  • ROC Curve plot: a graph with 1-Specificity on the x-axis and Sensitivity on the y-axis.

The APA 7 format template

A ROC analysis evaluated how well [the score] discriminated [the event] from [no event]. The area under the curve was AUC = .XX, 95% CI [.XX, .XX], SE = .XX, p [= .XXX or < .001]. At the cutoff that maximized Youden's index ([cutoff]), sensitivity was .XX and specificity was .XX, J = .XX.

Building the table for this? Eight APA 7 tables in Word, formatted and ready to fill, are in the Rescue Vault, $27 for guide readers (usually $47) →

Want to see it written from data? Run this test on sample data in KyroStat: free, no file needed, and it does not use your free tests.

Filled in with the worked example:

A ROC analysis evaluated how well the risk score discriminated patients with the disease from patients without it. The area under the curve was AUC = .88, 95% CI [.83, .93], SE = .02, p < .001. At a cutoff of 56.38, sensitivity was .87 and specificity was .79, J = .66.

Formatting rules for APA 7:

  • Italicize statistical symbols that are Latin letters used as variables: p, SE, n, N, M, SD, J.
  • Do not italicize abbreviations: AUC, CI, TPR, FPR stay upright.
  • No leading zero on proportions (AUC, p, sensitivity, specificity when reported as decimals): AUC = .88, not 0.88; p < .001, not p < 0.001; sensitivity = .87, not sensitivity = 0.87.
  • Write the 95% CI in square brackets with a true minus sign if the lower limit is negative: 95% CI [−.05, .93]. In this example: 95% CI [.83, .93].
  • Report p exactly to three decimals if above .001; below .001 write p < .001 (never .000).

Interpreting AUC

Interpretation bands (Hosmer, Lemeshow, & Sturdivant, 2013):

  • AUC = .5: the classifier is no better than random guessing.
  • .5 < AUC < .7: poor discrimination.
  • .7 to < .8: acceptable discrimination.
  • .8 to < .9: excellent discrimination.
  • AUC >= .9: outstanding discrimination.

In the example, AUC = .88 is in the "excellent" range. That does not mean the classifier is perfect; it means it separates the two groups well on average. The 95% CI [.83, .93] shows the range of plausible values given the sample size.

Optimal threshold: Youden's index

Different clinical contexts call for different thresholds. If false negatives are costly (missed disease cases), you might choose a low threshold (high sensitivity). If false positives are costly (unnecessary treatment), you might choose a high threshold (high specificity).

Youden's index (J = sensitivity + specificity − 1) finds a data-driven compromise. It picks the threshold that maximizes the sum of sensitivity and specificity. In the example, J is highest at a threshold of 56.38: sensitivity .87, specificity .79, J = .66. This threshold is often a reasonable default if you have no clinical reason to favor sensitivity or specificity.

To report it: "The optimal threshold by Youden's index was 56.38, yielding sensitivity = .87 and specificity = .79, J = .66."

Mistakes reviewers catch

  • Calling AUC a percent or percentage. AUC is a proportion (0 to 1); if you want a percentage, multiply by 100 and write 88%, but keep it as a proportion in APA text: AUC = .88.
  • Claiming discrimination without testing it. Always report the p value for the test H0: AUC = .5. In a small sample a respectable AUC such as .70 can come with p above .05, and then the score is not shown to beat chance.
  • Forgetting the standard error and 95% CI. These show precision. An AUC = .88 with a 95% CI [.51, .99] is much less stable than AUC = .88 with a 95% CI [.83, .93].
  • Picking the threshold after seeing the data without saying so. If you choose your threshold after looking at the ROC curve (e.g., "maximize sensitivity"), you are capitalizing on chance. Report your threshold choice as exploratory or pre-specified.
  • Confusing sensitivity and positive predictive value (PPV). Sensitivity is the probability of a positive test given disease. PPV is the probability of disease given a positive test. They are different conditional probabilities; PPV depends on prevalence, sensitivity does not. Report both if the reader needs the clinical meaning.
  • Using a simple median or mean as the threshold. The optimal threshold maximizes Youden's J (or your stated criterion), not the mean or median of the score. Use SPSS's output or calculate explicitly.

Frequently asked questions

What if I have 2 or more classifiers or tests? Put all of them in Test Variable(s). The ROC Curve procedure draws one curve per variable on the same plot and prints each AUC, but it does not test the difference between them. Report each AUC with its 95% CI, and use the next answer to test the difference.

Can I use the ROC curve for a continuous outcome? No; ROC is for binary classification. For a continuous outcome, use a different measure of prediction accuracy (e.g., R², RMSE, correlation).

What if I have missing values in the score or outcome? SPSS excludes any row with a missing value in either column. Report your final sample size (N = ...) in the results.

Should I report sensitivity and specificity, or AUC, or both? Report AUC as the primary measure of discrimination. If your audience cares about a specific threshold (e.g., clinicians choosing a cutoff), also report sensitivity, specificity, and positive/negative predictive value at that threshold.

Can I test whether two AUCs are significantly different? Yes. In SPSS 26 and later, the ROC Analysis procedure can compare paired or independent ROC curves. In R, pROC::roc.test() runs the DeLong, DeLong, and Clarke-Pearson (1988) test for two curves. Overlapping confidence intervals are not a test of the difference.

What is the standard error method in SPSS options? The ROC Curve Options dialog lets you choose the distribution assumption for the standard error: nonparametric (the default) or bi-negative exponential. Keep the default unless you have a reason to assume a distribution. The worked example on this page uses the Hanley and McNeil (1982) standard error, so SPSS's printed standard error can differ slightly from it; the AUC itself is the same. SPSS's coordinates table also lists cutoffs as midpoints between adjacent observed scores, so the Youden cutoff it shows sits between two scores rather than on 56.38 itself, with the same sensitivity and specificity.

Can I export the coordinates table? Yes; in SPSS's output window, right-click the table and choose Copy Special > Copy as Word or Excel to paste it into a table in your paper.

Related guides

References

DeLong, E. R., DeLong, D. M., & Clarke-Pearson, D. L. (1988). Comparing the areas under two or more correlated receiver operating characteristic curves: A nonparametric approach. Biometrics, 44(3), 837-845.

Hanley, J. A., & McNeil, B. J. (1982). The meaning and use of the area under a receiver operating characteristic (ROC) curve. Radiology, 143(1), 29-36.

Hosmer, D. W., Lemeshow, S., & Sturdivant, R. X. (2013). Applied logistic regression (3rd ed.). Wiley.

Your data in. Your Results out.

Create a free account and run your first analysis in minutes. No install, no statistics course.