R formula with a matrix on the left (instead of a response term) -
i'm reading doc of lme4 , came across code:
gm1 <- glmer(cbind(incidence, size - incidence) ~ period + (1 |herd), cbpp, binomial) i've never seen matrix being on left of ~ in formula before. doc on r's formula doesn't mention case.
what mean? what's being used response variable? checking gm1@frame shows both variables in matrix on left shows in model frame.
Comments
Post a Comment