BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
marurif
Calcite | Level 5

Is there a way to change the line patters and colors of the output of ROC curves derived from pro logistic?

I get this picture, but I would like to change to gray scale and more distinct line patterns.

I used a template, and I've been able to change the line thickness and the fonts, but I can't seem to change the color of the lines or the line patterns.

Any ideas?

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
proc logistic......
model ......../outroc=roc ;
run;
could get the data to plot ROC curve,
and using PROC SGPLOT to plot it by yourselef .
@Rick_SAS has written a blog about it before.

View solution in original post

8 REPLIES 8
Ksharp
Super User
proc logistic......
model ......../outroc=roc ;
run;
could get the data to plot ROC curve,
and using PROC SGPLOT to plot it by yourselef .
@Rick_SAS has written a blog about it before.
marurif
Calcite | Level 5
Using PROC SGPLOT to customize the ROC curves worked. Thanks.
Rick_SAS
SAS Super FREQ

What version of SAS are you running?

 

%put &=SYSVLONG4;

marurif
Calcite | Level 5

SAS Enterprise Guide 7.1

Rick_SAS
SAS Super FREQ

Thanks, but that is not the information we need. Please submit the statement

%put &=SYSVLONG4;

and send the value that is displayed in the log. It will look something like this:

7529 %put &=SYSVLONG4;
SYSVLONG4=9.04.01M6P11072018

marurif
Calcite | Level 5
SYSVLONG4=9.04.01M6P11072018
Rick_SAS
SAS Super FREQ

It would be great to see the code you are using to generate the ROC curve. In general, you have three options:

1. Use an ODS style. For grayscale and line patterns, use the JOURNAL style:

ods HTML style=Journal;
proc logistic data=Sashelp.Class;
model Sex = height weight age;
roc height;
roc weight;
roc age;
run;

2. Use one of the techniques in the SAS/STAT documentation chapter "Statistical Graphics Using ODS." 

The %MODSTYLE macro is often effective.

3. As KSharp suggested, write the data to a SAS data set and use PROC SGPLOT and use the features in that procedure  to control the attributes of the curve. If the data is in "long form," use the STYLEATTRS statement. If you use multiple SERIES statement, use the LINEATTRS= option.

 

marurif
Calcite | Level 5

Thanks.Using proc sgplot and customizing the output is working.

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!

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
  • 8 replies
  • 2628 views
  • 1 like
  • 3 in conversation