06-08-2017 01:56 PM
Good afternoon all. I'm writing because I am analyzing complex survey data, and trying to run PROC SURVEYFREQ to analyze depression and anxiety by self-rated health. When I attempt to run it, SAS Studio softlocks, as it keeps waiting but never actually gets anywhere. I don't get any error screens or anything. The other survey procedures (PROC SURVEYLOGISTIC) work fine. Here is my code (though I don't think the issue is the code itself):
PROC SURVEYFREQ Data=Hlth.MHlth;
TABLES health*depression health*anxiety;
TITLE "Health by Depression Tables";
I appreciate any advice you might have on this, as I am completely stumped.
06-08-2017 03:30 PM
Thanks for the quick reply. I am using SAS University Edition, and it's a small dataset wiuth ~500 observations. Also, it seems to not work when I use the stratum and cluster statements together. If I use the weight and cluster statements, or the weight and stratum statements, it runs fine.
06-08-2017 03:38 PM
So, SAS Studio isn't good at always throwing errors, sometimes it freezes and that's what you're running into.
There is a mistake somewhere in the logic/code, but I don't the proc well enough to comment on that portion.
Need further help from the community? Please ask a new question.