I am looking at an lmer
model that's been coded, and I don't quite understand what the -1
is / is doing. The code looks like fit = lmer(resids ~ -1 + (1|loc/time))
I believe the (1|loc/time)
piece can be equivalently written as (1|loc) + (1|loc:time)
, which is a random intercept of loc
, and a random intercept of time
varying within loc
.
Now the part I don't quite get: the -1
, which I think has to do with the mean. The only place I have found that has anything on using a -1
in that spot (as opposed to 1
or leaving it blank) is on page 7 of Fitting Linear Mixed-Effects Models using lme4. The table here shows it in conjunction with offset(o)
, which is used "to specify that a random intercept has a priori known means". So, my gut says that leaving the offset(o)
out would be the same as using offset(0)
(number 0
not character o
), which would mean the a priori means are all 0
.
Is this correct?