This generic function fits a linear mixed-effects model with nested or
crossed grouping factors for the random effects.
Usage
lmer(formula, data, ...)
Arguments
formula
a two-sided linear formula object describing the
fixed-effects part of the model, with the response on the left of a
~ operator and the terms, separated by + operators, on
the right. The vertical bar character
data
an optional data frame containing the variables named in
formula. By default the variables are taken from the
environment from which lmer is called.
...
Optional arguments for methods. Currently none are used.
lmer(formula, data, method = c("REML", "ML"),
control = list(), subset, weights, na.action, offset,
model = TRUE, x = FALSE, y = FALSE, ...)
Details
This is a revised version of the lme function from the
nlme package.
Additional standard arguments to model-fitting functions can be passed
to lmer.
[object Object],[object Object],[object Object],[object Object],[object Object]