Linear mixed models

You will get a glimpse of my learning route. There might be better resources to learn mixed models. Please email me if you have taken this road and hit me up with blogs/papers/books/courses/whatever which was super helpful and made the learning fun, easier and efficient

  1. Bodo winter’s two tutorials to revise linear models
  2. Learning Statistical Models Through Simulation in R chapter five is a good tutorial with a real word data. We will get to know the motivations to switch to mixed models
  3. For the very first time we hear the terms complete pooling, no pooling, and partial pooling. If you are not very careful, you will miss dummy coding. Run and revise coding schemes from Andy Field’s DSUR if this is not ringing any bell
  4. Tumble down the rabbit hole via this blog tutorial. Having a working knowledge of R really pays off here. Get familiarised with the anatomy of lme4 package
  5. Oh, the good old random factor vs fixed factor. Only categorical factors would become random factor. There is this thumb rule that, the categorical variable should have minimum of 6 levels
  6. Random factors can be thought of as nestings or groupings in the data. We are capturing the nature of the entire experiment
  7. Get a feel of shrinkage. Tristan Mahr’s blog (point no: 4) has a neat diagram which shows shrinkage. https://www.tjmahr.com/figs/2017-06-22-plotting-partial-pooling-in-mixed-effects-models/shrinkage-plot-1.png

The average intercept and slope act like a center of gravity, pulling values parameter estimates towards it. Hmm, maybe gravity is not quite the right analogy, because the pull is greater for more extreme values. The lines near that center point are very short; they get adjusted very little. The lines in general get longer as we move away from the complete pooling estimate

Douglas Bates (The wizard who wrothe THE book) says somewhere in his lme4 package vignette that shrinkage is the process via estimates for individual subjects “borrow strength” from each other

  1. Ahhh, the mandatory books links. Andrew Gelman and Jennifer presents Data Analysis Using Regression and Multilevel/Hierarchical Models. Statistical Rethinking: A Bayesian Course with Examples in R and Stan from Richard McElreath
  2. If you never really bothered to figure out the incest between t test, regression, correlation etc. you would be lost amidst previous links. Don’t worry. Here is a beacon of light, from coding club’s Introduction to linear models. Have fun with dinosaurs and their body lengths
  3. Give yourself a break with A fun intro to Multilevel Models in R

Want more to hit it off the roof?

  1. Mixed Models with R
  2. PSYC 575 Multilevel Modeling (2022 Fall)