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!
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.
My code for this model is:
proc logistic data=test.n;
model yes (ref = first) = score /outroc = rocscore;
roc;
run;
I added my code below, do you have any suggestions? Thanks so much for your help!
Check model option CTABLE, PPROB
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.
How do I add those options onto the code that I have pasted? Thanks!
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;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.