Hi
I am running the following PROC MIXED procedure to compare the difference in Y between group 1 and 2 to the difference in Y between group 3 and 4.
PROC MIXED;
CLASS group;
MODEL Y = group X1 X2;
CONTRAST 'Difference of differences 1 - 2 - (3 - 4)' group 1 -1 -1 1;
RUN;
The levels of another confounder (e.g., X3) in group 1 and group 3 is physiological higher than the levels in group 2 and group 4. So I cannot include X3 as an independent variable in the model since putting x3 in the model will allow X3 equal in the four groups, which is not true.
To make the comparison of differences in Y between groups (1-2) - (3-4) reasonable, I have to allow X3 comparable between group 1 and group3. So do between group 2 and group 4. How can I achieve it?
Thanks,