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!
@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
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.
@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
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.