# Multilevel Analysis with Intercations

#### St_Fo

##### New Member
Hello

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?
THX

#### Lazar

##### Phineas Packard
Yep looks fine. However:

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