lme4 (version 0.8-3)

lmer: Fit linear mixed-effects models

Description

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.

Value

synopsis

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]

See Also

lmer-class, lm

Examples

Run this code
(fm <- lmer(langPOST ~
           IQ.ver.cen + avg.IQ.ver.cen + (IQ.ver.cen | schoolNR),
           data = bdf))

Run the code above in your browser using DataCamp Workspace