lmer(formula, data, family,
method = c("REML", "ML", "PQL", "Laplace", "AGQ"),...)~ operator and the terms, separated by + operators, on
the right. The vertical bar character formula. By default the variables are taken from the
environment from which lmer is called.glm. If family is
missing then a linear mixed model is fit; otherwise a generalized
linear mixed model is fit."REML" indicating that the model should be fit by
maximizing the restricted log-likelihood. The alternative is
"ML" indicating that the log-likelihood shoulme-class{lmer} object.lme function from the
nlme package. This version uses a different method of
specifying random-effects terms and allows for fitting generalized
linear mixed models as well as linear mixed models.
Additional standard arguments to model-fitting functions can be passed
to lmer.
[object Object],[object Object],[object Object],[object Object]lmer-class, lm(fm1 <- lmer(decrease ~ treatment + (1|rowpos) + (1|colpos),
OrchardSprays))Run the code above in your browser using DataLab