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