Learn R Programming

lme4 (version 1.1-36)

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

374,093

Version

1.1-36

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Ben Bolker

Last Published

January 11th, 2025

Functions in lme4 (1.1-36)

devcomp

Extract the deviance component list
convergence

Assessing Convergence for Fitted Models
cbpp

Contagious bovine pleuropneumonia
confint.merMod

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

Verbal Aggression item responses
allFit

Refit a fitted model with all available optimizers
devfun2

Deviance Function in Terms of Standard Deviations/Correlations
bootMer

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

Extended Convergence Checking
cake

Breakage Angle of Chocolate Cakes
fortify

add information to data based on a fitted model
getME

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

Dummy variables (experimental)
glmFamily-class

glmFamily

Generator object for the glmFamily class
drop1.merMod

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

Determine random-effects expressions from a formula
factorize

Attempt to convert grouping variables to factors
expandDoubleVerts

Expand terms with '||' notation into separate '|' terms
fixef

Extract fixed-effects estimates
glmer.nb

Fitting Negative Binomial GLMMs
isREML

Check characteristics of models
glmerLaplaceHandle

Handle for glmerLaplace
golden-class

Class "golden" and Generator for Golden Search Optimizer Class
influence.merMod

Influence Diagnostics for Mixed-Effects Models
glmer

Fitting Generalized Linear Mixed-Effects Models
hatvalues.merMod

Diagonal elements of the hat matrix
grouseticks

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

Test Fitted Model for (Near) Singularity
isNested

Is f1 nested within f2?
lme4_testlevel

Detect testing level for lme4 examples and tests
lmList

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

Generator objects for the response classes
lme4-package

Linear, generalized linear, and nonlinear mixed models
merPredD-class

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

Class "merMod" of Fitted Mixed-Effect Models
lmResp-class

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

Fit Linear Mixed-Effects Models
lmerControl

Control of Mixed Model Fitting
lmList4-class

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

Make templates suitable for guiding mixed model simulations
mkVarCorr

Make Variance and Correlation Matrices from theta
modular

Modular Functions for Mixed Model Fits
ngrps

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

Manipulate a Nonlinear Model Formula
mkRespMod

Create an lmerResp, glmResp or nlsResp instance
mkReTrms

Make Random Effect Terms: Create Z, Lambda, Lind, etc.
mkMerMod

Create a 'merMod' Object
merPredD

Generator object for the merPredD class
namedList

Self-naming list function
ranef

Extract the modes of the random effects
plots.thpr

Mixed-Effects Profile Plots (Regular / Density / Pairs)
rePCA

PCA of random-effects covariance matrix
plot.merMod

Diagnostic Plots for 'merMod' Fits
nlmer

Fitting Nonlinear Mixed-Effects Models
profile-methods

Profile method for merMod objects
nloptwrap

Wrappers for additional optimizers
nobars

Omit terms separated by vertical bars in a formula
pvalues

Getting p-values for fitted models
sleepstudy

Reaction times in a sleep deprivation study
simulate.formula

A simulate Method for formula objects that dispatches based on the Left-Hand Side
residuals.merMod

residuals of merMod objects
predict.merMod

Predictions from a model at new data values
simulate.merMod

Simulate Responses From merMod Object
rePos-class

Class "rePos"
rePos

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

Troubleshooting
refit

Refit a (merMod) Model with a Different Response
refitML

Refit a Model by Maximum Likelihood Criterion
prt-utilities

Print and Summary Method Utilities for Mixed Effects
subbars

"Sub[stitute] Bars"
sigma

Extract Residual Standard Deviation 'Sigma'
vcconv

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

Covariance matrix of estimated parameters