Skip to content

Track T12

Mixed & Clustered Data

Repeated measures, clusters and partial pooling.

Unit 1Why grouping matters

· 1 lesson
  1. 1Clustered data: when your rows aren't independentPupils share classrooms, and repeated measures share a person. Rows in the same group overlap in what they tell you. Learn to measure that overlap, and see what happens to a test that ignores it.Applied · 11 min

Unit 2Mixed models

· 4 lessons
  1. 2Random intercepts and partial poolingA separate mean for each group trusts small groups too much, and one mean for all ignores them. A random intercept sits between the two, pulling each group toward the rest by an amount the data decide.Applied · 12 min
  2. 3Random slopes: a line for every personWhen an effect differs between people, a random intercept isn't enough. Add a random slope, see why its test has so few degrees of freedom, choose REML or ML, and know what to do with a singular fit.Advanced · 12 min
  3. 4Nested and crossed grouping factorsClasses sit inside schools, while every rater scores every item. Those two structures need different models, and repeated labels can quietly turn one into the other.Advanced · 10 min
  4. 5Generalized mixed models: binary and count outcomesRandom effects also work with logistic and Poisson models. Learn to read within-group odds ratios, an ICC on the latent scale, successes out of trials, and overdispersion in a mixed count model.Advanced · 12 min

Unit 3Marginal models and panels

· 3 lessons
  1. 6GEE: population-average effectsGeneralized estimating equations ask how the average outcome changes across a population, treat within-cluster correlation as a nuisance, and give standard errors that hold up even when your guess about that correlation is wrong.Advanced · 11 min
  2. 7Panels as mixed models: Breusch–Pagan LM, Hausman and MundlakA panel is clustered data with a clock. Random effects are a random-intercept model, fixed effects remove the units, and three tests tell you whether unit effects exist and whether they're tangled with your predictor.Advanced · 13 min
  3. 8Panel diagnostics: Pesaran CD, Wooldridge and panel unit rootsPanel errors can move together across units and drift over time, and whole panels can wander without a mean. Learn the tests for each, what their null hypotheses say, and why rejecting one isn't the same as all units behaving well.Advanced · 15 min