Dear Statalist user,
I am working with a pretest-posttest design data where 1000 individuals were surveyed before an experiment, and then half of them were assigned a treatment (genetic testing), and all of them were surveyed again after the experiment (about a year after the experiment).
We are trying to see first whether individual's opinions about race changed. The hypothesis is that the treatment group will change while the control group will not.
Secondly we want to see if this change is dependent on the Knowledge of Biology or not. (measured with a categorical variable)
The command we are using is xtmixed (the DV is continuous). I use Stata version 14 on a Mac.
For the first inquiry, we simply run the following command:
Code:
xtmixed DV i.Treatment##i. time i .BiologyKnowledge i. Male i.Age i.Educ ideology || ID:, var reml
Code:
xtmixed DV i.Treatment##i.time##i.BiologyKnowledge i. Male i.Age i.Educ ideology || ID:, var reml
Code:
xtmixed DV i.Treatment##i.BiologyKnowledge i.time i. Male i.Age i.Educ ideology || ID:, var reml
As far as I understand, unless we incorporate the time variable to the interaction, two-way interaction between the Biology Knowledge and the Treatment variable will only show whether the effect of Treatment variable on the DV (the difference between the Control and Treatment Group?) is contingent on the Biology Knowledge. But I am not quite sure which difference this interaction term captures between the Control and Treatment Group. The time variable will show the simple effect of time on the DV (average change?), I assume, but then what does the two-way interaction term between treatment and Biology Knowledge show exactly?
Another option is to run two separate two-way interactions: one with Treatment and time, and one with Treatment and Biology Knowledge.
Code:
xtmixed DV i.Treatment##i.time i.Treatment##i.BiologyKnowledge i. Male i.Age i.Educ ideology || ID:, var reml
How would that one differ from a three-way interaction?
Thanks,
Sule
Comment