Hi,
I'm looking for a R package for fitting a generalized linear mixed
model g(E[y])=X?+Zu where g is a link function, ? is a p vector of
fixed effects, u is a vector of random effects, X is design matrix,
Z is an identity matrix. In our data, each individual has only one
observation for response y. Because individuals may be correlated
in some way, leading to similar reponses, random effect u is
employed to correct for individual background effect. The variance
of u is assumed to be Var[u]=G*?^2, in which G is a correlation
matrix.
glmmPQL in MASS has an argument for correlation. However, I
encountered an error of invalid formula when using a n*n dimension
matrix G (n is the number of individuals, and also the length of
y) for argument 'correlation' in glmmPQL. For example: