Hi all. Running logistic regression with proc surveylogistic and I'm having trouble setting my references for the different variables. This 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) = age gender race politics religion vaxxed;
run;
And the error message I'm getting:
First thing: best practice is to copy/paste text from log into a text box opened on the forum using the </> icon at the top of the message window. This will preserve the text as created. The message windows on this forum will reformat text, such as moving the locations of the diagnostic characters like the underscores that appear under the place SAS determined an error occurs.
Second:
Look very closely at your posted code:
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: