Skip to main content

Fitting Linear Mixed-Effects Models

  • Chapter
Mixed-Effects Models in S and S-PLUS

Part of the book series: Statistics and Computing ((SCO))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 249.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics