BookmarkSubscribeRSS Feed
rmiller70
Calcite | Level 5

I have successfully created a SAS ROC Plot and have obtained the charted output. See attached picture. However, I am trying to obtain a table identical to how STATA will output its table (See 2nd attached picture). Can anyone help guide me into how I can get SAS to output cut-points?

 

Thanks!Screen Shot 2017-09-12 at 5.48.07 PM.pngScreen Shot 2017-09-12 at 5.48.39 PM.png

7 REPLIES 7
PeterClemmensen
Tourmaline | Level 20

Can you show your code so far? 🙂

 

A good start may be in the ROCOPTIONS part of the PROC LOGISTIC Documentation specifying ID=PROB | CUTPOINT.

rmiller70
Calcite | Level 5

My code for this model is:

 

proc logistic data=test.n;

model yes (ref = first) = score /outroc = rocscore;

roc;

run;

rmiller70
Calcite | Level 5

I added my code below, do you have any suggestions? Thanks so much for your help!

Ksharp
Super User

Check model option   CTABLE, PPROB

rmiller70
Calcite | Level 5

Can you assist with adding these model options into the following code?

 

proc logistic data=test.n;

model yes (ref = first) = score /outroc = rocscore;

roc;

run;

 

**I tried adding each after the rocscore but it wouldn't run properly.

rmiller70
Calcite | Level 5

How do I add those options onto the code that I have pasted? Thanks!

Ksharp
Super User
Hi . You can search these options at support.sas.com   and you will find the answer.


proc logistic data=sashelp.class;
model sex=height weight  /outroc = rocscore ctable pprob=(0.8 0.7 0.6 0.5 0.4);
run;


sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 7 replies
  • 2945 views
  • 4 likes
  • 3 in conversation