This is probably a stupid question, but I have a problem with the common technique for testing an interaction effect between a dichotomous variable and a continuous variable.
Dichotomous variables should generelly be coded 0,1 rather than 1,2.
An interaction variable is defined by multiplication. Commonly, researchers keep the 0,1 coding for the dichotomous variable when multiplying with the (centered) continuous variable to form an interaction variable. That is, the interaction variable is the same as the original continuous variable, except for all scores being defined as 0 if the individual scores 0 on the dichotomous variable (and being mean-centered).
Why is this better than using 1,2 as scores to represent the dichotomous variable in the multiplication to form an interaction variable? (And, did I read someewhere a suggestion to code the dichotomous variable as -1,+1 in the multiplication procedure)?
I understand the answer will lie in the simultaniously estimated main effects. It is still counterintuitive to me to use 0,1 when multiplying with a continuous variable to estimate interaction effects.
Dichotomous variables should generelly be coded 0,1 rather than 1,2.
An interaction variable is defined by multiplication. Commonly, researchers keep the 0,1 coding for the dichotomous variable when multiplying with the (centered) continuous variable to form an interaction variable. That is, the interaction variable is the same as the original continuous variable, except for all scores being defined as 0 if the individual scores 0 on the dichotomous variable (and being mean-centered).
Why is this better than using 1,2 as scores to represent the dichotomous variable in the multiplication to form an interaction variable? (And, did I read someewhere a suggestion to code the dichotomous variable as -1,+1 in the multiplication procedure)?
I understand the answer will lie in the simultaniously estimated main effects. It is still counterintuitive to me to use 0,1 when multiplying with a continuous variable to estimate interaction effects.
Comment