Skip to content

Latest commit

 

History

History
132 lines (90 loc) · 6.96 KB

TOC.md

File metadata and controls

132 lines (90 loc) · 6.96 KB

Mixed Models := ((--| generalized | non-) Linear | Generalized Additive) Mixed-Effects Models

i.e., LMM, GLMM, NLMM. GAMM

Table of Contents -- Lectures

Part I: Linear MM

  1. Introduction - 1- and 2-way ANOVA and beyond

'The' nlme book: Pinheiro, J.C., and Bates, D.M. (2000) Mixed-Effects Models in S and S-PLUS, Springer.

available at https://link.springer.com/book/10.1007%2Fb98882 (download PDF: inside ETH VPN)

a. nlme (book) chapter 1: Rail, ... .. "anova" notation: 1-way anova, 2-way R(markdown) script: R/ch01.Rmd -- and nicely rmarkdown::render()ed html.

b. lMMwR (not-yet-book by Doug Bates) chapter 1: sleepstudy --

c. Comparison aov(), lme(), lmer().

d. Classical solution: Assume given Sigma (called G). Wikipedia Mixed_model

e. Classical solution does not scale to large q (q = ncol(Z))

f. --> New approach to ML and REML

  1. General Notation: No "grouping" assumed --> general Z matrix

  2. Inference: "No P values" vs lmerTest et al.

a. nlme (book) chapter 2, notably 2.4 R(markdown) script: R/ch02.Rmd, rmarkdown::render()ed html.

b0. Browse the ?pvalues help page (in the lme4 package).

b. The lmerTest package has an accompanying publication in JSS (Dec, 2017): https://www.jstatsoft.org/article/view/v082i13

from which we used the (slightly extended/modified) R code, lmerTest_v82i13.R in 2018, and an extended help page example on ham tasting data, lmerTest-ham-ex.R in 2019.

An extended version of JSS paper's Appendix A, is now available at Rune Christensen's Satterthwaite_for_LMMs -- rendering correctly at MM's MEMo-pages -- providing nice derivations on how the degrees of freedom are approximated.

  • When can we trust the confidence intervals / P values ??
  • Profiled Likelihood - based intervals; profile pairs
  • Bootstrap -- non-iid?

c. Random slopes : non-scalar random effects etc: Ch. 3 of the lMMwR lecture notes, lMMwR.pdf; R code: ChLongitudinal.R.

Part II: Generalized LMM, e.g. for Count Data (Ecology)

Part III: Nonlinear MM (NLMM / NLME)

a. Motivation and Examples: nlme (book) chapter 6 R(markdown) script: R/ch06.Rmd, rmarkdown::render()ed html.

b. Glimpses into theory: nlme book ch.7, notably p.306--309.

c. Outlook into PK/PD modeling (pharmacology): New R package nlmixr, incl. non-linear functions defined via differential equations (ODE).

d. Non-linear Mixed-Effects (NLME): nlme (book) chapter 8, adapted R(markdown) script: R/ch08.Rmd, rmarkdown::render()ed html.

Not treated in lecture:

  • GAMM (Generalized Additive Mixed Models), e.g. mgcv::gamm() in R
  • Robust Linear MM, e.g., R package robustlmm