BookmarkSubscribeRSS Feed
Yan
Calcite | Level 5 Yan
Calcite | Level 5
We are running a logisitic regression with a interaction term which is the cross product of two dummy variables, two levels for each dummy. Thus the varaibles in the interaction term can form four groups, such as male with medicine, female with medicine, male w/o medicine, female w/o medicine. Now we want to use one of the 4 groups as referrence group then test the difference. I create a categorical variable(gender_med) with 4 levels to represent the 4 group and replace the interaction term with it in the logistic regression model. Sas created 3 dummy variables for that variable and in the result one of them has collineariy problem with the gender and medicine variable. How should I do?

I am thinking about taking out the gender and medicine variables from the model as actually you can derive those information from the newly created gender_med variables. Am I right?
2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12
Correct. Basically, you have just 3 degrees of freedom to represent the 4 categories. You can create a fully specified model with main effects and an interaction or by creating your own combined variable. Either way, you get the same overall model effect. The difference is in the ease of computing the post hoc tests.
Yan
Calcite | Level 5 Yan
Calcite | Level 5
Thanks very much for your reply. It's very helpful!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 3074 views
  • 0 likes
  • 2 in conversation