$begingroup$
I have a study in which participants were randomized to one of two conditions (ParticipantCondition). They completed surveys both pre-and post test. I want to to see if there is a significant interaction between condition and time, to see if one condition caused greater changes in the DV from pre to post than the other condition. The data is in the long form.
The data has also been imputed 50 times and is stored in the following mids object: impmids.
Could someone confirm whether this is the correct code to test the proposed research question:
library(mice)
library(lme4)
P.eddi <- with(impmids, lmer(EDDI_Total ~ ParticipantCondition * Time + (1|Participant_ID_New)))
BP.eddi.pooled <- pool(BP.eddi)
summary(BP.eddi.pooled)
Thank you!!
$endgroup$
0