talira

Linear and generalized linear mixed-effects models in R

open sourceGPL-2.0-or-laterfree

lme4 is an R package for fitting linear, generalized linear and nonlinear mixed-effects models, with any number of nested and crossed random effects. It's efficient on large data sets through the Eigen linear algebra library (via RcppEigen), fits GLMMs by Laplace approximation or adaptive Gauss-Hermite quadrature with user-defined families and links, and includes likelihood profiling and parametric bootstrapping. Douglas Bates, Martin Maechler, Ben Bolker and others maintain it.

Problems it solves

  • fit a mixed-effects model with random intercepts for subjects in R
  • analyse repeated measures data with crossed random effects
  • fit a logistic regression with random effects for grouped data

Features

  • linear, generalized linear and nonlinear mixed models
  • arbitrarily many nested and crossed random effects
  • Laplace approximation and adaptive Gauss-Hermite quadrature for GLMMs
  • likelihood profiling and parametric bootstrap
  • Eigen-based fitting for large data sets

Alternatives

The same job

These do what lme4 does.

  1. nlme Linear and nonlinear mixed-effects models for R

Compare lme4 with the top 3