lmer(formula, data, family = NULL, REML = TRUE,
control = list(), start = NULL, verbose = FALSE,
subset, weights, na.action, offset,
contrasts = NULL, model = TRUE, x = TRUE, ...)
lmer2(formula, data, family = NULL, REML = TRUE,
control = list(), start = NULL, verbose = FALSE,
subset, weights, na.action, offset,
contrasts = NULL, model = TRUE, x = TRUE, ...)
glmer(formula, data, family = gaussian, start = NULL,
verbose = FALSE, nAGQ = 1, subset, weights,
na.action, offset, contrasts = NULL, model = TRUE,
control = list(), ...)
nlmer(formula, data, start = NULL, verbose = FALSE, nAGQ = 1,
subset, weights, na.action, contrasts = NULL,
model = TRUE, control = list(), ...)~ 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.lmer only. Should the estimates
be chosen to optimize the REML criterion (as opposed to the
log-likelihood)? Defaults to TRUE.ST slot, it is
becomes the starting values of the ST slot. It the list
contains components named fixeflm; see there for
details.FALSE the model frame in
slot frame is truncated to zero rows.FALSE the model matrix in
slot X is truncated to zero rows.TRUE verbose output is
generated during the optimization of the parameter estimates.method argument was
used in earlier versions of the package. It's functionality has been
replaced by the REML and nAGQ arguments."mer ", for which many methods
are available. See there for details.lme function from the
Additional standard arguments to model-fitting functions can be passed
to lmer.
[object Object],[object Object],[object Object],[object Object]
The lmer2 name exists only for backwards compatibility.
Calling this function simply produces an equivalent call to lmer.
mer class, lm## linear mixed models
(fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
(fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy))
anova(fm1, fm2)
## generalized linear mixed model
(gm1 <- glmer(cbind(incidence, size - incidence) ~ period + (1 | herd),
family = binomial, data = cbpp))
## nonlinear mixed models
(nm1 <- nlmer(circumference ~ SSlogis(age, Asym, xmid, scal) ~ Asym|Tree,
Orange, start = c(Asym = 200, xmid = 725, scal = 350)))Run the code above in your browser using DataLab