Learn R Programming

lme4 (version 1.1-38)

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

578,990

Version

1.1-38

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Ben Bolker

Last Published

December 2nd, 2025

Functions in lme4 (1.1-38)

checkConv

Extended Convergence Checking
culcitalogreg

Coral-eating seastar Culcita novaeguineae data (binary predation version)
confint.merMod

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

Assessing Convergence for Fitted Models
VerbAgg

Verbal Aggression item responses
allFit

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

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

Breakage Angle of Chocolate Cakes
cbpp2

Contagious bovine pleuropneumonia (extended version)
cbpp

Contagious bovine pleuropneumonia
dummy

Dummy variables (experimental)
glmFamily-class

fortify

add information to data based on a fitted model
devcomp

Extract the deviance component list
devfun2

Deviance Function in Terms of Standard Deviations/Correlations
getME

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

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

Extract fixed-effects estimates
drop1.merMod

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

Attempt to convert grouping variables to factors
isREML

Check characteristics of models
hatvalues.merMod

Diagonal elements of the hat matrix
glmer

Fitting Generalized Linear Mixed-Effects Models
glmer.nb

Fitting Negative Binomial GLMMs
gopherdat2

Gopher tortoises shell remains
glmerLaplaceHandle

Handle for glmerLaplace
influence.merMod

Influence Diagnostics for Mixed-Effects Models
grouseticks

Data on red grouse ticks from Elston et al. 2001
golden-class

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

Generator object for the glmFamily class
lmerControl

Control of Mixed Model Fitting
lmResp

Generator objects for the response classes
lme4_testlevel

Detect testing level for lme4 examples and tests
lme4-package

Linear, generalized linear, and nonlinear mixed models
lmList

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

Test Fitted Model for (Near) Singularity
lmList4-class

Class "lmList4" of 'lm' Objects on Common Model
merMod-class

Class "merMod" of Fitted Mixed-Effect Models
lmer

Fit Linear Mixed-Effects Models
lmResp-class

Reference Classes for Response Modules, "(lm|glm|nls|lmer)Resp"
mkNewReTrms

Make new random effect terms for prediction
namedList

Self-naming list function
mkVarCorr

Make Variance and Correlation Matrices from theta
mkSimulateTemplate

Make templates suitable for guiding mixed model simulations
ngrps

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

Create an lmerResp, glmResp or nlsResp instance
mkMerMod

Create a 'merMod' Object
merPredD-class

Class "merPredD" - a Dense Predictor Reference Class
merPredD

Generator object for the merPredD class
modular

Modular Functions for Mixed Model Fits
profile-methods

Profile method for merMod objects
plots.thpr

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

Predictions from a model at new data values
nloptwrap

Wrappers for additional optimizers
rePCA

PCA of random-effects covariance matrix
nlformula

Manipulate a Nonlinear Model Formula
nlmer

Fitting Nonlinear Mixed-Effects Models
ranef

Extract the modes of the random effects
pvalues

Getting p-values for fitted models
plot.merMod

Diagnostic Plots for 'merMod' Fits
sigma

Extract Residual Standard Deviation 'Sigma'
refitML

Refit a Model by Maximum Likelihood Criterion
refit

Refit a (merMod) Model with a Different Response
salamander

Mountain dusky salamander mating
residuals.merMod

residuals of merMod objects
reformulas_imports

(deprecated) formula-processing functions
simulate.formula

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

Class "rePos"
rePos

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

National Institute of Mental Health Schizophrenia Collaborative Study
vcov.merMod

Covariance matrix of estimated parameters
summary

Summary for a [ng]lmer Fit
vcconv

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

Simulate Responses From merMod Object
prt-utilities

Print and Summary Method Utilities for Mixed Effects
toenail

Toenail onychomycosis data from dermatophyte infections
troubleshooting

Troubleshooting
sleepstudy

Reaction times in a sleep deprivation study
GQdk

Sparse Gaussian / Gauss-Hermite Quadrature grid
GHrule

Univariate Gauss-Hermite quadrature rule
Dyestuff

Yield of dyestuff by batch
InstEval

University Lecture/Instructor Evaluations by Students at ETH
NelderMead

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

Arabidopsis clipping/fertilization data
Penicillin

Variation in penicillin testing
Pastes

Paste strength by batch and cask
VarCorr

Extract Variance and Correlation Components
NelderMead-class

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