Learn R Programming

⚠️There's a newer version (1.1-37) of this package.Take me there.

lme4 (version 1.1-29)

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

544,654

Version

1.1-29

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Ben Bolker

Last Published

April 7th, 2022

Functions in lme4 (1.1-29)

VarCorr

Extract Variance and Correlation Components
Penicillin

Variation in penicillin testing
InstEval

University Lecture/Instructor Evaluations by Students at ETH
Pastes

Paste strength by batch and cask
NelderMead

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

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

Univariate Gauss-Hermite quadrature rule
GQdk

Sparse Gaussian / Gauss-Hermite Quadrature grid
cbpp

Contagious bovine pleuropneumonia
bootMer

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

Breakage Angle of Chocolate Cakes
devcomp

Extract the deviance component list
devfun2

Deviance Function in Terms of Standard Deviations/Correlations
dummy

Dummy variables (experimental)
drop1.merMod

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

Determine random-effects expressions from a formula
fixef

Extract fixed-effects estimates
Dyestuff

Yield of dyestuff by batch
isREML

Check characteristics of models
Arabidopsis

Arabidopsis clipping/fertilization data
VerbAgg

Verbal Aggression item responses
checkConv

Extended Convergence Checking
allFit

Refit a fitted model with all available optimizers
glmFamily

Generator object for the glmFamily class
glmFamily-class

isSingular

Test Fitted Model for (Near) Singularity
confint.merMod

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

add information to data based on a fitted model
convergence

Assessing Convergence for Fitted Models
grouseticks

Data on red grouse ticks from Elston et al. 2001
hatvalues.merMod

Diagonal elements of the hat matrix
glmer.nb

Fitting Negative Binomial GLMMs
glmer

Fitting Generalized Linear Mixed-Effects Models
factorize

Attempt to convert grouping variables to factors
expandDoubleVerts

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

Handle for glmerLaplace
golden-class

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

Extract or Get Generalized Components from a Fitted Mixed Effects Model
merMod-class

Class "merMod" of Fitted Mixed-Effect Models
lmer

Fit Linear Mixed-Effects Models
merPredD-class

Class "merPredD" - a Dense Predictor Reference Class
lmerControl

Control of Mixed Model Fitting
isNested

Is f1 nested within f2?
lme4_testlevel

Detect testing level for lme4 examples and tests
lme4-package

Linear, generalized linear, and nonlinear mixed models
influence.merMod

Influence Diagnostics for Mixed-Effects Models
lmResp-class

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

Manipulate a Nonlinear Model Formula
lmResp

Generator objects for the response classes
mkSimulateTemplate

Make templates suitable for guiding mixed model simulations
mkVarCorr

Make Variance and Correlation Matrices from theta
ngrps

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

Modular Functions for Mixed Model Fits
lmList

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

Create an lmerResp, glmResp or nlsResp instance
mkReTrms

Make Random Effect Terms: Create Z, Lambda, Lind, etc.
lmList4-class

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

Create a 'merMod' Object
merPredD

Generator object for the merPredD class
predict.merMod

Predictions from a model at new data values
profile-methods

Profile method for merMod objects
nobars

Omit terms separated by vertical bars in a formula
nloptwrap

Wrappers for additional optimizers
plot.merMod

Diagnostic Plots for 'merMod' Fits
plots.thpr

Mixed-Effects Profile Plots (Regular / Density / Pairs)
simulate.formula

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

Extract Residual Standard Deviation 'Sigma'
rePos

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

Refit a (merMod) Model with a Different Response
nlmer

Fitting Nonlinear Mixed-Effects Models
rePos-class

Class "rePos"
residuals.merMod

residuals of merMod objects
rePCA

PCA of random-effects covariance matrix
refitML

Refit a Model by Maximum Likelihood Criterion
simulate.merMod

Simulate Responses From merMod Object
prt-utilities

Print and Summary Method Utilities for Mixed Effects
vcconv

Convert between representations of (co-)variance structures
sleepstudy

Reaction times in a sleep deprivation study
pvalues

Getting p-values for fitted models
troubleshooting

Troubleshooting
ranef

Extract the modes of the random effects
subbars

"Sub[stitute] Bars"