I have a model that looks into a 3-way interaction between 2 categorical variables (Group: Gr. A, Gr. B, Gr. C; Area: A1, A2, A3) and a numerical linear interaction (Distance from center - ECC: 1, 2, 3) on participant accuracy. Formula = lmer(Accuracy ~ Group + ROI + Group:ECC:ROI + (1+ECC|ID), data =Ecc, REML = TRUE).
The effects of Group and ROI behave as expected (i.e. they are reported relative to the reference level, i.e. slope change relative to the Accuracy values of Group A and Area A1). However, the interaction effect seems to be returned relative to a straight line (i.e. slope change relative to a no slope - straight line - ). The output returns the interaction of the reference level as well as others, and is not affected by changing the reference level.
Can anyone explain why this is the case, and would you ahve any references to read more in it? We couldn't find much....
Here is the result of our model using the report (https://www.rdocumentation.org/packages/report/versions/0.5.7/topics/report) function:
We fitted a linear mixed model (estimated using REML and nloptwrap optimizer) to predict Accuracy with Group, ROI and ECC (formula: Accuracy ~ Group + ROI + Group:ECC:ROI). The model included ECC as random effects (formula: ~1 + ECC | ID). The model's total explanatory power is substantial (conditional R2 = 0.43) and the part related to the fixed effects alone (marginal R2) is of 0.19. The model's intercept, corresponding to Group = A, ROI = A1 and ECC = 0, is at 32.38 (95% CI [26.20, 38.55], t(333) = 10.32, p < .001). Within this model:
- The effect of Group [B] is statistically non-significant and positive (beta = 9.13, 95% CI [-0.71, 18.97], t(333) = 1.83, p = 0.069; Std. beta = 0.99, 95% CI [0.62, 1.36])
- The effect of Group [C] is statistically non-significant and positive (beta = 3.37, 95% CI [-5.73, 12.47], t(333) = 0.73, p = 0.467; Std. beta = 0.33, 95% CI [-7.09e-03, 0.67])
- The effect of ROI [A2] is statistically non-significant and negative (beta = -3.28, 95% CI [-9.13, 2.57], t(333) = -1.10, p = 0.271; Std. beta = -0.15, 95% CI [-0.35, 0.06])
- The effect of ROI [A3] is statistically non-significant and positive (beta = 4.10, 95% CI [-1.75, 9.95], t(333) = 1.38, p = 0.169; Std. beta = -0.13, 95% CI [-0.34, 0.07]) **- The effect of GroupA × ROIA1 × ECC is statistically non-significant and positive (beta = 2.95, 95% CI [-1.48, 7.39], t(333) = 1.31, p = 0.191; Std. beta = 0.14, 95% CI [-0.08, 0.35])
- The effect of Group [B] × ROIA1 × ECC is statistically significant and positive (beta = 11.55, 95% CI [4.85, 18.26], t(333) = 3.39, p < .001; Std. beta = 0.50, 95% CI [0.14, 0.85])
- The effect of Group [C] × ROIA1 × ECC is statistically non-significant and positive (beta = 4.55, 95% CI [-1.51, 10.62], t(333) = 1.48, p = 0.141; Std. beta = 0.23, 95% CI [-0.09, 0.55])
- The effect of GroupA × ROI [A2] × ECC is statistically non-significant and positive (beta = 2.38, 95% CI [-2.05, 6.82], t(333) = 1.06, p = 0.292; Std. beta = 0.16, 95% CI [-0.06, 0.38])
- The effect of Group [B] × ROI [A2] × ECC is statistically significant and positive (beta = 12.69, 95% CI [5.98, 19.39], t(333) = 3.72, p < .001; Std. beta = 0.57, 95% CI [0.21, 0.92])
- The effect of Group [C] × ROI [A2] × ECC is statistically significant and positive (beta = 7.35, 95% CI [1.29, 13.42], t(333) = 2.38, p = 0.018; Std. beta = 0.23, 95% CI [-0.09, 0.55])
- The effect of GroupA × ROI [A3] × ECC is statistically non-significant and negative (beta = -3.15, 95% CI [-7.59, 1.28], t(333) = -1.40, p = 0.163; Std. beta = -0.20, 95% CI [-0.42, 0.02])
- The effect of Group [B] × ROI [A3] × ECC is statistically non-significant and positive (beta = 3.89, 95% CI [-2.82, 10.59], t(333) = 1.14, p = 0.255; Std. beta = 0.21, 95% CI [-0.14, 0.57])
- The effect of Group [C] × ROI [A3] × ECC is statistically non-significant and negative (beta = -1.90, 95% CI [-7.97, 4.16], t(333) = -0.62, p = 0.537; Std. beta = 2.27e-10, 95% CI [-0.32, 0.32])**
Standardized parameters were obtained by fitting the model on a standardized version of the dataset. 95% Confidence Intervals (CIs) and p-values were computed using a Wald t-distribution approximation.
Thanks in advance!!! ############################################################################
Only relevant in the context of discussion comments below: Illustration of ME following discussion with dipetkov, at the moment we're finding non-sifniciant differences, I'd expect to find significant differences between group A and B, especially when referencing to A3, Group A


marginaleffects, 2 withemmeans. – dipetkov Nov 13 '23 at 18:42package and do
– CaroZ Nov 13 '23 at 23:10Acc ~ Group * ROI * ECC. The two categorical terms,Group * ROI, effectively define 9 subgroups. So the three way interaction means each group would have its own (fixed-effect) intercept and ECC slope. The individual intercept / slopes would vary about those group-specific ones. – dipetkov Nov 14 '23 at 14:41lme4::glmer. – dipetkov Nov 14 '23 at 21:24