| glmmPQL {MASS} | R Documentation |
Fit a GLMM model with multivariate normal random effects, using PQL.
glmmPQL(fixed, random, family, data, correlation, control, ...)
fixed |
a two-sided linear formula object describing the fixed-effects part of the model. |
random |
A formula or list of formulae describing the random effects. |
family |
a GLM family. |
data |
an optional data frame used as the first place to find variable sin the formulae. |
correlation |
an optional correlation structure. |
control |
an optional argument to be passed to
lme. (This is modified in the S version by
passed unchanged in the R version.) |
... |
Further arguments for lme. |
glmmPQL is a wrapper to iterative calls to
lme. Initial values are found by a call to
glm, and then lme is applied to the working vector,
including the BLUPs of the random effects in forming the linear
predictor.
A object of class "lme": see lmeObject.
B. D. Ripley
Schall, R. (1991) Estimation in generalized linear models with random effects. Biometrika 78, 719727.
Breslow, N. E. and Clayton, D. G. (1993) Approximate inference in generalized linear mixed models. Journal of the American Statistical Association 88, 925.
Wolfinger, R. and O'Connell, M. (1993) Generalized linear mixed models: a pseudo-likelihood approach. Journal of Statistical Computation and Simulation 48, 233243.
require(nlme)
data(bacteria)
summary(glmmPQL(y ~ trt + I(week> 2), random = ~ 1 | ID,
family = binomial, data = bacteria))