I am trying to understand if the outcome of one model is equivalent to another.
So for instance, I have three variables: wealth (continuous in dollars), productive (dichotomous: yes or no) and age_group (categorical: young,mid,old).
First model: wealth~productive*age_group
Second model: productive~wealth*age_group
So the interaction term in my first model represents whether the relationship between productive and wealth is age_group dependent and the interaction of second model represents whether the relationship between wealth and productive is age_group dependent.
Are these two interaction terms explaining the same thing?
Update: I am doing this in R:
- First model: lmmodel <- lm(wealth~productive*age_group)
- Second model: glmmodel <- glm(productive~wealth*age_group,family=binomial(link='logit'),na.action=na.omit)