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 shoulmer-class{lmer}
object.lme
function from the
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