merTools icon indicating copy to clipboard operation
merTools copied to clipboard

Data manipulation functions don't work with some GLM specifications

Open jknowles opened this issue 8 years ago • 0 comments

Using the two column model specification option for count and binomial models does not work with averageObs :

gm1 <- glmer(cbind(incidence, size - incidence) ~ period + (1 | herd),
              data = cbpp, family = binomial)
averageObs(gm1)

This is because the last line of the function requires parsing the names of the model frame, but thesew ill not line up with the original data because of the formula defining the Y variable.

jknowles avatar Aug 25 '17 14:08 jknowles