I am trying to do some mixed/fixed effect modelling, and have come across the lme4 package, which includes the lmer function. But I am really confused about the syntax to be honest, and I have tried looking into the documentation, but I am not sure I fully understand, and also it seems like the ones I have differ a bit.
For example I have something like this:
T <- lmer(Y ~ Treatment + 0 + (1|Block) + (1|Subblock), data = D, REML = FALSE)
T1 <- lmer(Y ~ 1 + (1|Block) + (1|Subblock), data = D, REML = FALSE)
Can anyone "quickly" explain what this actually means ? Like, the 1's before the | means that the variable Block or Subblock should be treated as random effect, and Treatment is a fixed effect. But what about the single 1's and 0's ? Can I change the 1's before the | to 0's, and if so, what does that mean ?