Multilevel Analysis with Intercations


I'd like to do a regression analysis with interactions, my data has two levels (school classes ans pupils). My variables are: Predictor = dummy variable on Level 1, dependent Variable = metric on level 1, moderator variable = metric, Level 2

I used the following command, but I am not sure if that right:

model <- lmer(DV~1+ IV1 + IV2 +IV1*IV2+(1|cluster), daten)

Can you tell me if that's correct?


Phineas Packard
Yep looks fine. However:

model <- lmer(DV ~ IV1*IV2 + (1|cluster), daten)
is ever so slightly more compact :)