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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1519 views
  • 0 likes
  • 3 in conversation