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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 3053 views
  • 0 likes
  • 2 in conversation