1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
DATA LIST LIST /probs actual actual2.
BEGIN DATA
.1 1 1
.2 1 1
.3 1 2 
.24 2 2 
.5 2 2 
.6 2 2 
.8 2 1.5
.95 2 1.5
.49 .5 .5
.5 1.5 1.5
END DATA.
LIST.

ROC
  actual  BY probs (.5)
  /PLOT = CURVE(REFERENCE)
  /PRINT = COORDINATES
  /CRITERIA = CUTOFF(INCLUDE) TESTPOS(LARGE) DISTRIBUTION(FREE) CI(95)
  /MISSING = EXCLUDE .

ROC
  actual actual2  BY probs (.5)
  /PLOT = CURVE(REFERENCE)
  /PRINT = COORDINATES
  /CRITERIA = CUTOFF(INCLUDE) TESTPOS(LARGE) DISTRIBUTION(FREE) CI(95)
  /MISSING = EXCLUDE .

SCRIPT 'C:\data\CreatePivotTable-ROC.sbs'.