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

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