BookmarkSubscribeRSS Feed
reb
Calcite | Level 5 reb
Calcite | Level 5
Hi All,
I am using proc logistic to create and compare ROC curves for diagnostics. I get great curves and can produce the coordinates of the curve, however, the coordinate table does not tell me at whcih cut off for the test in question the coordinate occurs - so for example, i would know that the point on a curve has sensitivity of x and specificity of y, but i cannot tell at which cut off for the test x and y are acheived. Is there a way of adding the cut off to the table so i can state what suitable cut offs are for particular tests?

I am currently using the following to run the curves and comparisons:

ods graphics on;
proc logistic data=ROCPTT plots=roc(id=prob);
model WEREPIANIMALSFOUND(event='1') = NUMBEROFABPOSITIVEYSINSAMPLE10 INITIALBULKMILKODRATIO NUMBEROFABPOSITIVEYSINSAMPLE10*INITIALBULKMILKODRATIO/ outroc=roc_score nofit;
roc 'ys' NUMBEROFABPOSITIVEYSINSAMPLE10;
roc 'BMab' INITIALBULKMILKODRATIO;
roc 'ys*BMab' NUMBEROFABPOSITIVEYSINSAMPLE10*INITIALBULKMILKODRATIO;
roccontrast reference('YS') / estimate e;
run;
ods graphics off;

outroc=roc_score produces the table of coordinates but with no cut of values mentioned. SPSS will produce the same table with cut offs, but it doesnt seem able to combine the tests to produce a combined ROC curve like SAS and the stats are better in the SAS model.

Thanks in advance Message was edited by: reb
1 REPLY 1
mkm063
Fluorite | Level 6

Did you figure this out ever? If so, could you paste your solution / options that you used?

Thanks

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 3039 views
  • 0 likes
  • 2 in conversation