Skip to main content
Top

2013 | OriginalPaper | Chapter

15. Fitting Linear Mixed-Effects Models: The lmer() Function

Authors : Andrzej Gałecki, Tomasz Burzykowski

Published in: Linear Mixed-Effects Models Using R

Publisher: Springer New York

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

In Chap. 14, we introduced the lme() function from the nlme package. The function is a popular and well-established tool to fit LMMs. It is especially suitable for fitting LMMs to data with hierarchies defined by nested grouping factors.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literature
go back to reference Baayen, R., Davidson, D., & Bates, D. (2008). Mixed-effects modeling with crossed random effects for subjects and items. Journal of Memory and Language, 59(4), 390–412.CrossRef Baayen, R., Davidson, D., & Bates, D. (2008). Mixed-effects modeling with crossed random effects for subjects and items. Journal of Memory and Language, 59(4), 390–412.CrossRef
go back to reference Bates, D. (2012). Computational Methods for Mixed Models. R Foundation for Statistical Computing. Bates, D. (2012). Computational Methods for Mixed Models. R Foundation for Statistical Computing.
go back to reference Bates, D., & Maechler, M. (2012). Matrix: Sparse and Dense Matrix Classes and Methods. R package version 1.0–10. http://CRAN.R-project.org/package=Matrix. Bates, D., & Maechler, M. (2012). Matrix: Sparse and Dense Matrix Classes and Methods. R package version 1.0–10. http://​CRAN.​R-project.​org/​package=​Matrix.​
go back to reference Bates, D., Maechler, M., & Bolker, B. (2012). Fitting linear mixed-effects models using lme4. Journal of Statistical Software (forthcoming). Bates, D., Maechler, M., & Bolker, B. (2012). Fitting linear mixed-effects models using lme4. Journal of Statistical Software (forthcoming).
go back to reference Box, G. E. P., Jenkins, G. M., & Reinsel, G. C. (1994). Time Series Analysis. Prentice Hall Inc., third ed. Forecasting and control. Box, G. E. P., Jenkins, G. M., & Reinsel, G. C. (1994). Time Series Analysis. Prentice Hall Inc., third ed. Forecasting and control.
go back to reference Cantrell, C. (2000). Modern Mathematical Methods for Physicists and Engineers. Cambridge University Press. Cantrell, C. (2000). Modern Mathematical Methods for Physicists and Engineers. Cambridge University Press.
go back to reference Carroll, R., & Ruppert, D. (1988). Transformation and Weighting in Regression. Chapman & Hall/CRC. Carroll, R., & Ruppert, D. (1988). Transformation and Weighting in Regression. Chapman & Hall/CRC.
go back to reference Chambers, J., & Hastie, T. (1992). Statistical Models in S. Wadsworth & Brooks/Cole Advanced Books & Software. Chambers, J., & Hastie, T. (1992). Statistical Models in S. Wadsworth & Brooks/Cole Advanced Books & Software.
go back to reference Chatterjee, S., Hadi, A., & Price, B. (2000). The Use of Regression Analysis by Example. John Wiley & Sons. Chatterjee, S., Hadi, A., & Price, B. (2000). The Use of Regression Analysis by Example. John Wiley & Sons.
go back to reference Claflin, D.R., Larkin, L.M., Cederna, P.S., Horowitz, J.F., Alexander, N.B., Cole, N.M., Galecki, A.T., Chen, S., Nyquist, L.V., Carlson, B.M., Faulkner, J.A., & Ashton-Miller, J.A. (2011) Effects of high- and low-velocity resistance training on the contractile properties of skeletal muscle fibers from young and older humans. Journal of Applied Physiology, 111, 1021–1030.CrossRef Claflin, D.R., Larkin, L.M., Cederna, P.S., Horowitz, J.F., Alexander, N.B., Cole, N.M., Galecki, A.T., Chen, S., Nyquist, L.V., Carlson, B.M., Faulkner, J.A., & Ashton-Miller, J.A. (2011) Effects of high- and low-velocity resistance training on the contractile properties of skeletal muscle fibers from young and older humans. Journal of Applied Physiology, 111, 1021–1030.CrossRef
go back to reference Crainiceanu, C., & Ruppert, D. (2004). Likelihood ratio tests in linear mixed models with one variance component. Journal of the Royal Statistical Society: Series B, 66, 165–185.MathSciNetMATHCrossRef Crainiceanu, C., & Ruppert, D. (2004). Likelihood ratio tests in linear mixed models with one variance component. Journal of the Royal Statistical Society: Series B, 66, 165–185.MathSciNetMATHCrossRef
go back to reference Cressie, N. A. C. (1991). Statistics for Spatial Data. Wiley Series in Probability and Mathematical Statistics: Applied Probability and Statistics. John Wiley & Sons. Cressie, N. A. C. (1991). Statistics for Spatial Data. Wiley Series in Probability and Mathematical Statistics: Applied Probability and Statistics. John Wiley & Sons.
go back to reference Dahl, D. B. (2009). xtable: Export tables to LaTeX or HTML. R package version 1.5-6. http://CRAN.R-project.org/package=xtable. Dahl, D. B. (2009). xtable: Export tables to LaTeX or HTML. R package version 1.5-6. http://​CRAN.​R-project.​org/​package=​xtable.​
go back to reference Dalgaard, P. (2008). Introductory Statistics with R. Springer Verlag. Dalgaard, P. (2008). Introductory Statistics with R. Springer Verlag.
go back to reference Davidian, M., & Giltinan, D. (1995). Nonlinear Models for Repeated Measurement Data. Chapman & Hall. Davidian, M., & Giltinan, D. (1995). Nonlinear Models for Repeated Measurement Data. Chapman & Hall.
go back to reference Demidenko, E. (2004). Mixed Models: Theory and Applications. Wiley-Interscience, first ed. Demidenko, E. (2004). Mixed Models: Theory and Applications. Wiley-Interscience, first ed.
go back to reference Fai, A., & Cornelius, P. (1996). Approximate F-tests of multiple degree of freedom hypotheses in generalized least squares analyses of unbalanced split-plot experiments. Journal of Statistical Computation and Simulation, 54(4), 363–378.MathSciNetMATHCrossRef Fai, A., & Cornelius, P. (1996). Approximate F-tests of multiple degree of freedom hypotheses in generalized least squares analyses of unbalanced split-plot experiments. Journal of Statistical Computation and Simulation, 54(4), 363–378.MathSciNetMATHCrossRef
go back to reference Fitzmaurice, G. M., Laird, N. M., & Ware, J. H. (2004). Applied Longitudinal Analysis. Wiley Series in Probability and Statistics. John Wiley & Sons.MATH Fitzmaurice, G. M., Laird, N. M., & Ware, J. H. (2004). Applied Longitudinal Analysis. Wiley Series in Probability and Statistics. John Wiley & Sons.MATH
go back to reference Galecki, A. (1994). General class of covariance structures for two or more repeated factors in longitudinal data analysis. Communications in Statistics-Theory and Methods, 23(11), 3105–3119.MATHCrossRef Galecki, A. (1994). General class of covariance structures for two or more repeated factors in longitudinal data analysis. Communications in Statistics-Theory and Methods, 23(11), 3105–3119.MATHCrossRef
go back to reference Gelman, A., Carlin, J. B., Stern, H. S., & Rubin, D. B. (1995). Bayesian Data Analysis. Texts in Statistical Science Series. Chapman & Hall. Gelman, A., Carlin, J. B., Stern, H. S., & Rubin, D. B. (1995). Bayesian Data Analysis. Texts in Statistical Science Series. Chapman & Hall.
go back to reference Golub, G. H., & Van Loan, C. F. (1989). Matrix Computations, vol. 3 of Johns Hopkins Series in the Mathematical Sciences. Johns Hopkins University Press, second ed. Golub, G. H., & Van Loan, C. F. (1989). Matrix Computations, vol. 3 of Johns Hopkins Series in the Mathematical Sciences. Johns Hopkins University Press, second ed.
go back to reference Hastie, T., Tibshirani, R., & Friedman, J. (2009). The Elements of Statistical Learning: Data Mining, Inference and Prediction. Springer. Hastie, T., Tibshirani, R., & Friedman, J. (2009). The Elements of Statistical Learning: Data Mining, Inference and Prediction. Springer.
go back to reference Helms, R. (1992). Intentionally incomplete longitudinal designs: I. Methodology and comparison of some full span designs. Statistics in Medicine, 11(14-15), 1889–1913. Helms, R. (1992). Intentionally incomplete longitudinal designs: I. Methodology and comparison of some full span designs. Statistics in Medicine, 11(14-15), 1889–1913.
go back to reference Henderson, C. (1984). Applications of Linear Models in Animal Breeding. University of Guelph. Henderson, C. (1984). Applications of Linear Models in Animal Breeding. University of Guelph.
go back to reference Hill, H., Rowan, B., & Ball, D. (2005). Effect of teachers’ mathematical knowledge for teaching on student achievement. American Educational Research Journal, 42, 371– 406.CrossRef Hill, H., Rowan, B., & Ball, D. (2005). Effect of teachers’ mathematical knowledge for teaching on student achievement. American Educational Research Journal, 42, 371– 406.CrossRef
go back to reference Janssen, R., Tuerlinckx, F., Meulders, M., & De Boeck, P. (2000). A hierarchical IRT model for criterion-referenced measurement. Journal of Educational and Behavioral Statistics, 25(3), 285. Janssen, R., Tuerlinckx, F., Meulders, M., & De Boeck, P. (2000). A hierarchical IRT model for criterion-referenced measurement. Journal of Educational and Behavioral Statistics, 25(3), 285.
go back to reference Jones, R. (1993). Longitudinal Data with Serial Correlation: A State-space Approach. Chapman & Hall/CRC. Jones, R. (1993). Longitudinal Data with Serial Correlation: A State-space Approach. Chapman & Hall/CRC.
go back to reference Kenward, M., & Roger, J. (1997). Small sample inference for fixed effects from restricted maximum likelihood. Biometrics, 53(3), 983–997.MATHCrossRef Kenward, M., & Roger, J. (1997). Small sample inference for fixed effects from restricted maximum likelihood. Biometrics, 53(3), 983–997.MATHCrossRef
go back to reference Laird, N., & Ware, J. (1982). Random-effects models for longitudinal data. Biometrics, 38(4), 963–974.MATHCrossRef Laird, N., & Ware, J. (1982). Random-effects models for longitudinal data. Biometrics, 38(4), 963–974.MATHCrossRef
go back to reference Leisch, F. (2002). Sweave: Dynamic generation of statistical reports using literate data analysis. In W. Härdle, & B. Rönz (eds.) Compstat 2002 — Proceedings in Computational Statistics, (pp. 575–580). Physica Verlag, Heidelberg. Leisch, F. (2002). Sweave: Dynamic generation of statistical reports using literate data analysis. In W. Härdle, & B. Rönz (eds.) Compstat 2002 — Proceedings in Computational Statistics, (pp. 575–580). Physica Verlag, Heidelberg.
go back to reference Lenth, R. (2001). Some practical guidelines for effective sample size determination. The American Statistician, 55(3), 187–193.MathSciNetCrossRef Lenth, R. (2001). Some practical guidelines for effective sample size determination. The American Statistician, 55(3), 187–193.MathSciNetCrossRef
go back to reference Liang, K.-Y., & Self, S. G. (1996). On the asymptotic behaviour of the pseudolikelihood ratio test statistic. Journal of the Royal Statistical Society: Series B, 58(4), 785–796.MathSciNetMATH Liang, K.-Y., & Self, S. G. (1996). On the asymptotic behaviour of the pseudolikelihood ratio test statistic. Journal of the Royal Statistical Society: Series B, 58(4), 785–796.MathSciNetMATH
go back to reference Litell, R., Milliken, G., Stroup, W., Wolfinger, R., & Schabenberger, O. (2006). SAS for Mixed Models. SAS Publishing. Litell, R., Milliken, G., Stroup, W., Wolfinger, R., & Schabenberger, O. (2006). SAS for Mixed Models. SAS Publishing.
go back to reference Molenberghs, G., & Verbeke, G. (2007). Likelihood ratio, score, and Wald tests in a constrained parameter space. The American Statistician, 61(1), 22–27.MathSciNetCrossRef Molenberghs, G., & Verbeke, G. (2007). Likelihood ratio, score, and Wald tests in a constrained parameter space. The American Statistician, 61(1), 22–27.MathSciNetCrossRef
go back to reference Murrell, P. (2005). R Graphics. Chapman & Hall/CRC. Murrell, P. (2005). R Graphics. Chapman & Hall/CRC.
go back to reference Murrell, P., & Ripley, B. (2006). Non-standard fonts in postscript and pdf graphics. The Newsletter of the R Project, 6(2), 41. Murrell, P., & Ripley, B. (2006). Non-standard fonts in postscript and pdf graphics. The Newsletter of the R Project, 6(2), 41.
go back to reference Neter, J., Wasserman, W., & Kutner, M. (1990). Applied Linear Statistical Models. Irwin Neter, J., Wasserman, W., & Kutner, M. (1990). Applied Linear Statistical Models. Irwin
go back to reference Pharmacological Therapy for Macular Degeneration Study Group (1997). Interferon α-IIA is ineffective for patients with choroidal neovascularization secondary to age-related macular degeneration. Results of a prospective randomized placebo-controlled clinical trial. Archives of Ophthalmology, 115, 865–872. Pharmacological Therapy for Macular Degeneration Study Group (1997). Interferon α-IIA is ineffective for patients with choroidal neovascularization secondary to age-related macular degeneration. Results of a prospective randomized placebo-controlled clinical trial. Archives of Ophthalmology, 115, 865–872.
go back to reference Pinheiro, J., & Bates, D. (1996). Unconstrained parametrizations for variance-covariance matrices. Statistics and Computing, 6(3), 289–296.CrossRef Pinheiro, J., & Bates, D. (1996). Unconstrained parametrizations for variance-covariance matrices. Statistics and Computing, 6(3), 289–296.CrossRef
go back to reference Pinheiro, J., & Bates, D. (2000). Mixed-effects Models in S and S-PLUS. Springer. Pinheiro, J., & Bates, D. (2000). Mixed-effects Models in S and S-PLUS. Springer.
go back to reference R Development Core Team (2010). R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing. R Development Core Team (2010). R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing.
go back to reference Santos Nobre, J., & da Motta Singer, J. (2007). Residual analysis for linear mixed models. Biometrical Journal, 49(6), 863–875.MathSciNetCrossRef Santos Nobre, J., & da Motta Singer, J. (2007). Residual analysis for linear mixed models. Biometrical Journal, 49(6), 863–875.MathSciNetCrossRef
go back to reference Sarkar, D. (2008). Lattice: Multivariate Data Visualization with R. Springer Verlag. Sarkar, D. (2008). Lattice: Multivariate Data Visualization with R. Springer Verlag.
go back to reference Schabenberger, O. (2004). Mixed model influence diagnostics in proceedings of the twenty-ninth annual sas users group international conference. Proceedings of the Twenty-Ninth Annual SAS Users Group International Conference, 189, 29. Schabenberger, O. (2004). Mixed model influence diagnostics in proceedings of the twenty-ninth annual sas users group international conference. Proceedings of the Twenty-Ninth Annual SAS Users Group International Conference, 189, 29.
go back to reference Schabenberger, O., & Gotway, C. (2005). Statistical Methods for Spatial Data Analysis, vol. 65. Chapman & Hall. Schabenberger, O., & Gotway, C. (2005). Statistical Methods for Spatial Data Analysis, vol. 65. Chapman & Hall.
go back to reference Scheipl, F., Greven, S., & Kuechenhoff, H. (2008). Size and power of tests for a zero random effect variance or polynomial regression in additive and linear mixed models. Computational Statistics & Data Analysis, 52(7), 3283–3299.MathSciNetMATHCrossRef Scheipl, F., Greven, S., & Kuechenhoff, H. (2008). Size and power of tests for a zero random effect variance or polynomial regression in additive and linear mixed models. Computational Statistics & Data Analysis, 52(7), 3283–3299.MathSciNetMATHCrossRef
go back to reference Schluchter, M., & Elashoff, J. (1990). Small-sample adjustments to tests with unbalanced repeated measures assuming several covariance structures. Journal of Statistical Computation and Simulation, 37(1-2), 69–87.MATHCrossRef Schluchter, M., & Elashoff, J. (1990). Small-sample adjustments to tests with unbalanced repeated measures assuming several covariance structures. Journal of Statistical Computation and Simulation, 37(1-2), 69–87.MATHCrossRef
go back to reference Searle, S., Casella, G., & McCulloch, C. (1992). Variance Components. John Wiley & Sons. Searle, S., Casella, G., & McCulloch, C. (1992). Variance Components. John Wiley & Sons.
go back to reference Self, S. G., & Liang, K.-Y. (1987). Asymptotic properties of maximum likelihood estimators and likelihood ratio tests under nonstandard conditions. Journal of the American Statistical Association, 82(398), 605–610.MathSciNetMATHCrossRef Self, S. G., & Liang, K.-Y. (1987). Asymptotic properties of maximum likelihood estimators and likelihood ratio tests under nonstandard conditions. Journal of the American Statistical Association, 82(398), 605–610.MathSciNetMATHCrossRef
go back to reference Shapiro, A. (1985). Asymptotic distribution of test statistics in the analysis of moment structures under inequality constraints. Biometrika, 72(1), 133–144.MathSciNetMATHCrossRef Shapiro, A. (1985). Asymptotic distribution of test statistics in the analysis of moment structures under inequality constraints. Biometrika, 72(1), 133–144.MathSciNetMATHCrossRef
go back to reference Stram, D., & Lee, J. (1994). Variance components testing in the longitudinal mixed effects model. Biometrics, 50(4), 1171–1177.MATHCrossRef Stram, D., & Lee, J. (1994). Variance components testing in the longitudinal mixed effects model. Biometrics, 50(4), 1171–1177.MATHCrossRef
go back to reference Tibaldi, F., Verbeke, G., Molenberghs, G., Renard, D., Van den Noortgate, W., & De Boeck, P. (2007). Conditional mixed models with crossed random effects. British Journal of Mathematical and Statistical Psychology, 60(2), 351–365.CrossRef Tibaldi, F., Verbeke, G., Molenberghs, G., Renard, D., Van den Noortgate, W., & De Boeck, P. (2007). Conditional mixed models with crossed random effects. British Journal of Mathematical and Statistical Psychology, 60(2), 351–365.CrossRef
go back to reference Van den Noortgate, W., De Boeck, P., & Meulders, M. (2003). Cross-classification multilevel logistic models in psychometrics. Journal of Educational and Behavioral Statistics, 28(4), 369.CrossRef Van den Noortgate, W., De Boeck, P., & Meulders, M. (2003). Cross-classification multilevel logistic models in psychometrics. Journal of Educational and Behavioral Statistics, 28(4), 369.CrossRef
go back to reference Venables, W., & Ripley, B. (2010). Modern Applied Statistics with S. Springer. Venables, W., & Ripley, B. (2010). Modern Applied Statistics with S. Springer.
go back to reference Verbeke, G., & Molenberghs, G. (2000). Linear Mixed Models for Longitudinal Data. Springer Verlag. Verbeke, G., & Molenberghs, G. (2000). Linear Mixed Models for Longitudinal Data. Springer Verlag.
go back to reference Vonesh, E., & Chinchilli, V. (1997). Linear and Nonlinear Models for the Analysis of Repeated Measurements. CRC. Vonesh, E., & Chinchilli, V. (1997). Linear and Nonlinear Models for the Analysis of Repeated Measurements. CRC.
go back to reference West, B. T., Welch, K. B., & Gałecki, A. T. (2007). Linear Mixed Models: A Practical Guide Using Statistical Software. Chapman and Hall/CRC. West, B. T., Welch, K. B., & Gałecki, A. T. (2007). Linear Mixed Models: A Practical Guide Using Statistical Software. Chapman and Hall/CRC.
go back to reference Wickham, H. (2007). Reshaping data with the reshape package. Journal of Statistical Software, 21(12). Wickham, H. (2007). Reshaping data with the reshape package. Journal of Statistical Software, 21(12).
go back to reference Wilkinson, G., & Rogers, C. (1973). Symbolic description of factorial models for analysis of variance. Applied Statistics, 22, 392–399.CrossRef Wilkinson, G., & Rogers, C. (1973). Symbolic description of factorial models for analysis of variance. Applied Statistics, 22, 392–399.CrossRef
Metadata
Title
Fitting Linear Mixed-Effects Models: The lmer() Function
Authors
Andrzej Gałecki
Tomasz Burzykowski
Copyright Year
2013
Publisher
Springer New York
DOI
https://doi.org/10.1007/978-1-4614-3900-4_15

Premium Partner