Learn R Programming

lme4 (version 2.0-6)

Linear Mixed-Effects Models using 'Eigen' and S4

Description

Fit linear and generalized linear mixed-effects models. The models and their components are represented using S4 classes and methods. The core computational algorithms are implemented using the 'Eigen' C++ library for numerical linear algebra and 'RcppEigen' "glue".

Copy Link

Version

Install

install.packages('lme4')

Monthly Downloads

693,195

Version

2.0-6

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Ben Bolker

Last Published

July 16th, 2026

Functions in lme4 (2.0-6)

cbpp

Contagious bovine pleuropneumonia
fortify

add information to data based on a fitted model
devfun2

Deviance Function in Terms of Standard Deviations/Correlations
deviance

Deviance of Fitted Mixed-Effect Models
glmer

Fitting Generalized Linear Mixed-Effects Models
culcitalvolume

Coral-eating seastar Culcita novaeguineae data (volume loss version)
VarCorr

Extract Variance and Correlation Components of Covariance
allFit

Refit a fitted model with all available optimizers to check convergence
devcomp

Extract the deviance component list
getDoublevertDefault

Retrieve default double-vertical-bar-expansion method
bootMer

Model-based (Semi-)Parametric Bootstrap for Mixed Models
isNewMerMod

Test if a ‘merMod’ Object Has Current Representation
grouseticks

Data on red grouse ticks from Elston et al. 2001
VerbAgg

Verbal Aggression item responses
gopherdat2

Gopher tortoises shell remains
glmer.nb

Fitting Negative Binomial GLMMs
lme4-package

Linear, generalized linear, and nonlinear mixed models
convergence

Assessing Convergence for Fitted Models
glmFamily-class

drop1.merMod

Drop all possible single fixed-effect terms from a mixed effect model
glmFamily

Generator object for the glmFamily class
lmResp

Generator objects for the response classes
culcitalogreg

Coral-eating seastar Culcita novaeguineae data (binary predation version)
isREML

Check characteristics of models
glmerLaplaceHandle

Handle for glmerLaplace
golden-class

Class "golden" and Generator for Golden Search Optimizer Class
dummy

Dummy variables (experimental)
merPredD-class

Class "merPredD" - a Dense Predictor Reference Class
lmList4-class

Class "lmList4" of 'lm' Objects on Common Model
isSingular

Test Fitted Model for (Near) Singularity
mkRespMod

Create an lmerResp, glmResp or nlsResp instance
mkSimulateTemplate

Make templates suitable for guiding mixed model simulations
nloptwrap

Wrappers for additional optimizers
lmResp-class

Reference Classes for Response Modules, "(lm|glm|nls|lmer)Resp"
hatvalues.merMod

Diagonal elements of the hat matrix
checkConv

Extended Convergence Checking
influence.merMod

Influence Diagnostics for Mixed-Effects Models
confint.merMod

Compute Confidence Intervals for Parameters of a [ng]lmer Fit
fixef

Extract fixed-effects estimates
factorize

Attempt to convert grouping variables to factors
merPredD

Generator object for the merPredD class
lmList

Fit List of lm or glm Objects with a Common Model
ngrps

Number of Levels of a Factor or a "merMod" Model
getME

Extract or Get Generalized Components from a Fitted Mixed Effects Model
namedList

Self-naming list function
plot.merMod

Diagnostic Plots for 'merMod' Fits
mkMerMod

Create a 'merMod' Object
mkNewReTrms

Make new random effect terms for prediction
plots.thpr

Mixed-Effects Profile Plots (Regular / Density / Pairs)
predict.merMod

Predictions from a model at new data values
getReCovs

Extract Fitted Covariance Structures
ranef

Extract the modes of the random effects
rePos-class

Class "rePos"
salamander

Mountain dusky salamander mating
rePos

Generator object for the rePos (random-effects positions) class
lme4_testlevel

Detect testing level for lme4 examples and tests
mkVarCorr

Make Variance and Correlation Components of Covariance
refit

Refit a (merMod) Model with a Different Response
lmer

Fit Linear Mixed-Effects Models
modular

Modular Functions for Mixed Model Fits
rePCA

PCA of random-effects covariance matrix
schizophrenia

National Institute of Mental Health Schizophrenia Collaborative Study
nlformula

Manipulate a Nonlinear Model Formula
pvalues

Getting p-values for fitted models
nlmer

Fitting Nonlinear Mixed-Effects Models
profile-methods

Profile method for merMod objects
troubleshooting

Troubleshooting
prt-utilities

Print and Summary Method Utilities for Mixed Effects
refitML

Refit a Model by Maximum Likelihood Criterion
summary

Summary for a [ng]lmer Fit
toenail

Toenail onychomycosis data from dermatophyte infections
vcconv

Convert between representations of (co-)variance structures
simulate.formula

A simulate Method for formula objects that dispatches based on the Left-Hand Side
sigma

Extract Residual Standard Deviation 'Sigma'
vcov.merMod

Covariance matrix of estimated parameters
lmerControl

Control of Mixed Model Fitting
reformulas_imports

(deprecated) formula-processing functions
residuals.merMod

residuals of merMod objects
merMod-class

Class "merMod" of Fitted Mixed-Effect Models
simulate.merMod

Simulate Responses From merMod Object
sleepstudy

Reaction times in a sleep deprivation study
Arabidopsis

Arabidopsis clipping/fertilization data
GHrule

Univariate Gauss-Hermite quadrature rule
GQdk

Sparse Gaussian / Gauss-Hermite Quadrature grid
Dyestuff

Yield of dyestuff by batch
InstEval

University Lecture/Instructor Evaluations by Students at ETH
Penicillin

Variation in penicillin testing
Pastes

Paste strength by batch and cask
NelderMead-class

Class "NelderMead" of Nelder-Mead optimizers and its Generator
NelderMead

Nelder-Mead Optimization of Parameters, Possibly (Box) Constrained
Covariance-class

Virtual Class ‘Covariance’ of Covariance Matrices
cake

Breakage Angle of Chocolate Cakes