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

I am trying to generate an ROC curve using the PROC LOGISTIC procedure (see example below that I am using as a guide):

descending data = pinedat plots=effect plots=ROC(id=prob);

class alc /descending param = glm;

model y = age alc ;

roc 'Age' age;

roc 'Alcohol' alc;

roc 'Age & Alcohol' age alc ;

roccontrast reference('Age & Alcohol') /estimate

 

However, my sample is weighted, and I'm not sure how to modify this to be used with PROC SURVEYLOGISTIC. Any help would be much appreciated. Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

@gabybarber wrote:
My data (PRAMS data from the CDC) does have a complex sample design. Do you happen to know how to do an ROC curve with data that has a complex sample design?

Thanks!

I think this paper may help:  https://support.sas.com/resources/papers/proceedings14/SAS404-2014.pdf

 

Google: SAS Logistic ROC Pred Surveylogistic

View solution in original post

4 REPLIES 4
ballardw
Super User

Does your data come from a complex weighting scheme? If not then perhaps all you need is the Weight statement in Proc Logistic.

 

Surveylogistic doesn't currently do plots.

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statu...

 

 

gabybarber
Calcite | Level 5
My data (PRAMS data from the CDC) does have a complex sample design. Do you happen to know how to do an ROC curve with data that has a complex sample design?

Thanks!
ballardw
Super User

@gabybarber wrote:
My data (PRAMS data from the CDC) does have a complex sample design. Do you happen to know how to do an ROC curve with data that has a complex sample design?

Thanks!

I think this paper may help:  https://support.sas.com/resources/papers/proceedings14/SAS404-2014.pdf

 

Google: SAS Logistic ROC Pred Surveylogistic

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 4 replies
  • 832 views
  • 0 likes
  • 2 in conversation