BookmarkSubscribeRSS Feed
dmalato2
Calcite | Level 5

I'm running PROC LOGISTIC and some of my independent variables are dummy variables. Do I need to include these dummy variables in the CLASS statement? I've run it both ways, including them in the CLASS statement and excluding them, and while I get the same Pr > ChiSq both ways, the estimate is different each way. In fact, when including the dummies in the CLASS statement, it appears that the estimate is in the wrong direction. What's the difference here?

1 REPLY 1
Reeza
Super User

Are your dummy variables 1/0? If so then you don't need to include it in the CLASS statement.

The opposite sign on the parameter estimates may be due to the difference in the reference level.  You can set your reference level explicitly in the CLASS statement.

CLASS dummy_variable (PARAM=REF REF=0);

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 2806 views
  • 3 likes
  • 2 in conversation