BookmarkSubscribeRSS Feed
Yan
Calcite | Level 5 Yan
Calcite | Level 5
I got different results when running logistic regression using Proc Logistic with interaction term.

One way, I directly put the cross product term in the model statement of Proc Logistic; the other way I created an interaction variable in DATA step. Both variables in the interaction term are categorical variables.

Results are different when I included the missing in the analysis. One is significant, the other is not. Can't figure out why this will be different. Not sure how SAS deal with the interaction term in Proc Logistic.
3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12
You should not get different results. I do it routinely and get the same either way. I suspect your DATA step code is making a subtle assumption difference.
Yan
Calcite | Level 5 Yan
Calcite | Level 5
Thanks for your reply.

I did get the same result if I excluded the missing from the analysis. But different when I include the missing values in the analysis.
plf515
Lapis Lazuli | Level 10
Please post your code so that we can attempt to diagnose the problem

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 3 replies
  • 1681 views
  • 0 likes
  • 3 in conversation