I would like to probe an interaction in a moderation analysis between a categorical predictor and a continuous variable in a multiple imputed data set.
I would like to look at the effect of different levels of the continuous moderator (-1SD, Mean, +1SD).
I know that this is possible in SPSS with the PROCESS macro, but unfortunately, it cannot handle multiple imputed data. The interaction package can't handle it either. Does anyone have any ideas on how to solve this problem?
I have imputed the data with the mice package, with m = 50.
My model looks like this:
lm(outcome ~ group * continuous_moderator)
Here is a reproducible example, using the windspeed dataset integrated in mice:
data <- mice::windspeed
data$group <- sample(c(0:1), replace = T, size = 433)
imp_data <- mice(data,
m=50,
maxit=20,
meth='cart',
seed=12345)
model1 <- with(imp_data,
lm(RochePt ~ group * Clones))
Thanks in advance for all your help and tips.