I am using glmer
from the lme4
package in R to conduct a multivariate analysis.
My response variable is define as
rate <- cbind(A, B)
where A
is the count of positive cases in a cohort and B
is the total count of the cohort minus A
.
The formula I am using is
glmer(rate ~ C + D + E + F + G + (1 | Z), family=poisson())
where C
- F
are 1 or 0, G
is a count and Z
is a factor with 6 levels.
When I run this model, I get the error updateXwts: dimension mismatch
, but as far as I am aware, glmer
supports multivariate analysis.
Any ideas on how I can solve this?