I am trying to analyse subgroups of a mixed-effects model using custom contrasts. I have 2 factors F1 and F2, each with 3 levels. My interest is in comparing the groups like this:
- F1_group1 vs. F1_group2and3
- F1_group2 vs. F1_group3
- F2_group1 vs. F2_group2and3
- F2_group2 vs. F2_group3
I am using lme4::lmer(), and them emmeans::emmeans(). The model looks good, the contrasts look good (uncorrelated etc.). The things that "should" be significant are, and those that "should not" are not.
Problem: The estimates are obviously scaled. The exact values are way too large. If I do paired comparisons the estimates are fine. I do not understand how exactly and can't find information on this anywhere.
I am very interested in the exact estimates, not just the p-values, so I would like to figure out where the issue occurs. Any ideas or pointers?
Contrasts look like this:
F1 | F2 | c1 | c2 | c3 | c4 |
---|---|---|---|---|---|
a | a | -2 | 0 | 1 | -1 |
a | b | -2 | 0 | -2 | 0 |
a | c | -2 | 0 | 1 | 1 |
b | a | 1 | -1 | 1 | -1 |
b | b | 1 | -1 | -2 | 0 |
b | c | 1 | -1 | 1 | 1 |
c | a | 1 | 1 | 1 | -1 |
c | b | 1 | 1 | -2 | 0 |
c | c | 1 | 1 | 1 | 1 |