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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.