Fitting Linear Mixed-Effects Models Using lme4

Maximum likelihood or restricted maximum likelihood (REML) estimates of the parameters in linear mixed-effects models can be determined using the lmer function in the lme4 package for R. As for most model-fitting functions in R, the model is described in an lmer call by a formula, in this case inclu...

Full description

Bibliographic Details
Main Authors: Douglas Bates, Martin Mächler, Ben Bolker, Steve Walker
Format: Article
Language:English
Published: Foundation for Open Access Statistics 2015-10-01
Series:Journal of Statistical Software
Subjects:
Online Access:https://www.jstatsoft.org/index.php/jss/article/view/2388
id doaj-7f279483412348928f01507440b0360d
record_format Article
spelling doaj-7f279483412348928f01507440b0360d2020-11-24T22:28:54ZengFoundation for Open Access StatisticsJournal of Statistical Software1548-76602015-10-0167114810.18637/jss.v067.i01944Fitting Linear Mixed-Effects Models Using lme4Douglas BatesMartin MächlerBen BolkerSteve WalkerMaximum likelihood or restricted maximum likelihood (REML) estimates of the parameters in linear mixed-effects models can be determined using the lmer function in the lme4 package for R. As for most model-fitting functions in R, the model is described in an lmer call by a formula, in this case including both fixed- and random-effects terms. The formula and data together determine a numerical representation of the model from which the profiled deviance or the profiled REML criterion can be evaluated as a function of some of the model parameters. The appropriate criterion is optimized, using one of the constrained optimization functions in R, to provide the parameter estimates. We describe the structure of the model, the steps in evaluating the profiled deviance or REML criterion, and the structure of classes or types that represents such a model. Sufficient detail is included to allow specialization of these structures by users who wish to write functions to fit specialized linear mixed models, such as models incorporating pedigrees or smoothing splines, that are not easily expressible in the formula language used by lmer.https://www.jstatsoft.org/index.php/jss/article/view/2388sparse matrix methodslinear mixed modelspenalized least squaresCholesky decomposition
collection DOAJ
language English
format Article
sources DOAJ
author Douglas Bates
Martin Mächler
Ben Bolker
Steve Walker
spellingShingle Douglas Bates
Martin Mächler
Ben Bolker
Steve Walker
Fitting Linear Mixed-Effects Models Using lme4
Journal of Statistical Software
sparse matrix methods
linear mixed models
penalized least squares
Cholesky decomposition
author_facet Douglas Bates
Martin Mächler
Ben Bolker
Steve Walker
author_sort Douglas Bates
title Fitting Linear Mixed-Effects Models Using lme4
title_short Fitting Linear Mixed-Effects Models Using lme4
title_full Fitting Linear Mixed-Effects Models Using lme4
title_fullStr Fitting Linear Mixed-Effects Models Using lme4
title_full_unstemmed Fitting Linear Mixed-Effects Models Using lme4
title_sort fitting linear mixed-effects models using lme4
publisher Foundation for Open Access Statistics
series Journal of Statistical Software
issn 1548-7660
publishDate 2015-10-01
description Maximum likelihood or restricted maximum likelihood (REML) estimates of the parameters in linear mixed-effects models can be determined using the lmer function in the lme4 package for R. As for most model-fitting functions in R, the model is described in an lmer call by a formula, in this case including both fixed- and random-effects terms. The formula and data together determine a numerical representation of the model from which the profiled deviance or the profiled REML criterion can be evaluated as a function of some of the model parameters. The appropriate criterion is optimized, using one of the constrained optimization functions in R, to provide the parameter estimates. We describe the structure of the model, the steps in evaluating the profiled deviance or REML criterion, and the structure of classes or types that represents such a model. Sufficient detail is included to allow specialization of these structures by users who wish to write functions to fit specialized linear mixed models, such as models incorporating pedigrees or smoothing splines, that are not easily expressible in the formula language used by lmer.
topic sparse matrix methods
linear mixed models
penalized least squares
Cholesky decomposition
url https://www.jstatsoft.org/index.php/jss/article/view/2388
work_keys_str_mv AT douglasbates fittinglinearmixedeffectsmodelsusinglme4
AT martinmachler fittinglinearmixedeffectsmodelsusinglme4
AT benbolker fittinglinearmixedeffectsmodelsusinglme4
AT stevewalker fittinglinearmixedeffectsmodelsusinglme4
_version_ 1725745836621561856