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:
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.