in the model below, can I say that 2021 G2 is not significant because it is calculated from a non-significant interaction ?
- These are my variables:
CONT_Y = scores
YEAR = A/B (2020 or 2021)
MY_GROUP = test1 (G1) or test2 (G2)
- I have this model:
Y ~ MY_GROUP * YEAR
modInteraction <- lmer(Y ~ MY_GROUP * YEAR + (1|PARTICIPANTS), data = data, REML = FALSE)
confint(boot_modInteraction, type = "norm")
# A tibble: 4 x 6
term estimate lower upper type level
<chr> <dbl> <dbl> <dbl> <chr> <dbl>
1 (Intercept) 17.6 16.7 18.5 norm 0.95 sig
2 GROUPG2 0.915 0.117 1.69 norm 0.95 sig
3 YEAR2021 1.14 0.180 2.13 norm 0.95 sig
4 GROUPL2:YEAR2021 -0.602 -1.77 0.572 norm 0.95 ns
- From which I get:
G1 2020 = the intercept = 17.6
G1 2021 = B0 + B2 = 17.6 + 1.14 = 18.74
G2 2020 = B0 + B1 = 17.6 + 0.915 = 18.51
G2 2021 = B0 + B1 + B2 + B3 = 17.6 + 0.915 + 1.14 + -0.60 = 19.05
I know from paired t-tests that:
test A) G1 2020 < G2 2020 sig
test B) G1 2020 < G1 2021 sig
test C) G1 2021 < G2 2021 ns
test D) G2 2020 < G2 2021 ns
Questions:
Q1: Is it ok to say that tests C and D are not significant because
G2 2021score derived from a non-significant interaction ? Thanks.
Obs: more details of the model and the dataset can be seen here
emmeans()function in the emmeans package. Likewise, I imagine you want to get the p-value for the effects from an anova-like table. For this you could use thejoint_tests()function from the emmeans package, although it's probably more common to use the lmerTest package. – Sal Mangiafico Oct 15 '22 at 19:36