Okay first of all.....if you saw my last post, no you didn't. ANYWAYS.....
I'm trying to run a logistic regression with proc surveylogistic and I'm having trouble setting my reference levels for the different variables. Here is my code:
proc surveylogistic data=masks1;
weight wt_multi;
class d_age_cat2 (ref=”0”) d_gender (ref=”MALE”) d_race (ref=”NH White”) d_politics (ref=”DEM“) d_religion2 (ref=”NOTHING”) vaxxed (ref=”0”);
model b2_m_always (descending) = d_age_cat2 d_gender d_race d_politics d_religion2 vaxxed;
run;
103
104 proc surveylogistic data=masks1;
105 weight wt_multi;
106 class d_age_cat2 (ref=”0”) d_gender (ref=”MALE”) d_race (ref=”NH White”) d_politics (ref=”DEM“)
_______ __________ _____ _________
_____________
22 22 22 22
22
202 202 202 202
202
106 ! d_religion2 (ref=”NOTHING”) vaxxed (ref=”0”);
106 class d_age_cat2 (ref=”0”) d_gender (ref=”MALE”) d_race (ref=”NH White”) d_politics (ref=”DEM“)
106 ! d_religion2 (ref=”NOTHING”) vaxxed (ref=”0”);
_______
22
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, FIRST, LAST.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
106 class d_age_cat2 (ref=”0”) d_gender (ref=”MALE”) d_race (ref=”NH White”) d_politics (ref=”DEM“)
106 ! d_religion2 (ref=”NOTHING”) vaxxed (ref=”0”);
_______
202
ERROR 202-322: The option or parameter is not recognized and will be ignored.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.