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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -