Chapter Summary
This chapter describes the capabilities available in the nlme library for fitting and analyzing linear mixed-effects models with uncorrelated, homoscedastic within-group errors. The lme function, for fitting linear mixede ffects models, is described in detail and its various capabilities and associated methods are illustrated through the analyses of several real data examples, covering single-level models, multilevel nested models, and models with crossed random effects.
The model-building approach developed in this chapter follows an “insideout” strategy, using individual lm fits, obtained with the lmList function, to construct more sophisticated linear mixed-effects models. A rich, integrated suite of diagnostic plots to assess model assumptions is described and illustrated through examples.
The class of mixed-effects models which can be fit with lme is greatly extended by the availability of patterned random-effects variance-covariance structures. These are implemented in S through pdMat classes, which can be extended with user defined classes.
The linear mixed-effects model considered in this chapter is extended in two different ways later in the book. In Chapter 5, the assumption of uncorrelated, homoscedastic within-group errors is relaxed, and variance functions and correlation structures are introduced the model heteroscedasticity and within-group dependence. The assumption of linearity for E[y i |b i ] is relaxed in Chapter 8, when nonlinear mixed-effects models are described.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2000 Springer-Verlag New York, Inc.
About this chapter
Cite this chapter
(2000). Fitting Linear Mixed-Effects Models. In: Mixed-Effects Models in S and S-PLUS. Statistics and Computing. Springer, New York, NY. https://doi.org/10.1007/0-387-22747-4_4
Download citation
DOI: https://doi.org/10.1007/0-387-22747-4_4
Publisher Name: Springer, New York, NY
Print ISBN: 978-0-387-98957-0
Online ISBN: 978-0-387-22747-4
eBook Packages: Springer Book Archive