I am working with a survey experiment. The data is set at three levels: individual, county, and state.
The experimental condition was randomized at the individual level 1. That is, some individuals in a county received the experimental condition while others did not.
How should I set the random intercept, multilevel model? I want the model to know that the experimental condition was set at the level 1.
I am working with this baseline model:
library(lme4)
model1 <- lmer(outcome ~ 1 + experimental.condition + (1|state) +
(1|state:city), REML=FALSE, data = df)
Is this correct?