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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 8 replies
  • 1389 views
  • 1 like
  • 3 in conversation