I'm stuck with something. I have two categorical independent variables, IV1 (with values 1, 2, and 3) and IV2 (a dichotomous variable with values zero and one), and a continuous dependent variable (DV1). I'm requesting the following command:
In the results, the base variable is, as I asked, the value 1 of IV1 crossed with the value 0 of IV2. But if I then estimate the following:
Now the base variables are all those interactions that involve the value zero.
Why, when inserting IV1 alone into the second equation, do the base variables become three?
Code:
regress DV1 ib(1).IV1#ib(0).IV2, allbase
Code:
gregress DV1 ib(1).IV1#ib(0).IV2 i.IV1, allbase
Why, when inserting IV1 alone into the second equation, do the base variables become three?
Comment