What are the key aims of the Linear Mixed Models (LMM) lecture?
Understand what LMMs are and when to use them, how to work with them in R, how to interpret their results, and random effects/random variables.
2
New cards
What is a key assumption of ordinary linear models?
Residuals are i.i.d.: independent and identically distributed.
3
New cards
Why might we use a mixed model?
Datasets often have nested or hierarchical structure, so observations may not be independent.
4
New cards
Give an example of data nested within participants and items.
A participant completes many trials in a face-recognition test; datapoints are nested within participants and faces/items.
5
New cards
Give an example of a multilevel hierarchical dataset.
Children are nested within classrooms, which are nested within schools.
6
New cards
Why are LMMs useful for hierarchical data?
They retain the nested structure and account for grouping variables (random effects) that can explain additional variance.
7
New cards
What are fixed effects?
Explanatory variables hypothesized to affect the dependent variable; all possible treatment-effect conditions are present in the experiment.
8
New cards
What are random effects?
Categorical variables whose levels are sampled at random from a larger population.
9
New cards
Give examples of random-effect grouping variables.
Participants, schools, and items such as pictures of faces.
10
New cards
Why include variables as random effects in LMMs?
To control for their variability and, with representative sampling, generalize results to the wider population of those random effects.
11
New cards
What are three important features of random-effect variables?
They are categorical; ideally have at least five levels for accurate estimation; and usually represent a sample of all possible levels, where the particular sampled levels are not the main interest.
12
New cards
Do all mixed models have a fully hierarchical structure?
No. Non-hierarchical mixed models can include crossed or partially crossed factors.
13
New cards
What is a crossed effect?
A factor where all subjects experience all levels of that effect.
14
New cards
Give the lecture's example of a crossed effect.
Children from different classes are each observed in all eight lessons; lesson is crossed.
15
New cards
What is a partially crossed effect?
A factor where not all subjects experience all levels; for example, not all children attend all lessons.
16
New cards
What advantages of LMMs are listed in the lecture?
They can handle data where independence is violated, have higher power with missing data, and account for an arbitrary number of random effects.
17
New cards
How do LMMs relate to simple regression?
They work like simple regression but allow intercepts, slopes, or both to vary across levels of a random effect.
18
New cards
What is the simple regression equation shown in the lecture?
Yᵢ = b₀ + b₁X₁ᵢ + εᵢ.
19
New cards
In the simple regression equation, what does i represent?
Each observation.
20
New cards
In the lecture's example, what does b₁ represent?
The slope for the predictor X, which is IQ.
21
New cards
In the lecture's example, what does b₀ represent?
The intercept.
22
New cards
What is the example dataset used to illustrate LMMs?
English test scores in Year 3 are predicted from raw intelligence scores (Raven's test, measured in Year 1) and behaviour score (lower/upper quartile, measured in Year 3), with school considered as a random effect.
A model where the intercept varies across groups, but the slope is fixed.
25
New cards
What is the random-intercepts equation in the lecture?
Yᵢⱼ = (b₀ + s₀ⱼ) + b₁X₁ᵢⱼ + εᵢⱼ.
26
New cards
What does s₀ⱼ represent in a random-intercepts model?
The added intercept for each level j of the grouping variable, such as each school.
27
New cards
How do lines look in a random-intercepts model?
They have different intercepts but the same slope (parallel lines).
28
New cards
What is a random-slopes model?
A model where the intercept is fixed but the slope varies across groups.
29
New cards
What is the random-slopes equation in the lecture?
Yᵢⱼ = b₀ + (b₁ + s₁ⱼ)X₁ᵢⱼ + εᵢⱼ.
30
New cards
What does s₁ⱼ represent in a random-slopes model?
The added slope for each level j of the grouping variable.
31
New cards
How do lines look in a random-slopes model?
They share the same intercept but have different slopes.
32
New cards
What is a random-intercepts-and-slopes model?
A model where both intercepts and slopes vary across groups.
33
New cards
What is the random-intercepts-and-slopes equation in the lecture?
Yᵢⱼ = (b₀ + s₀ⱼ) + (b₁ + s₁ⱼ)X₁ᵢⱼ + εᵢⱼ.
34
New cards
In the random-intercepts-and-slopes model, what do s₀ⱼ and s₁ⱼ represent?
s₀ⱼ is the group-specific added intercept; s₁ⱼ is the group-specific added slope.
35
New cards
How do lines look in a random-intercepts-and-slopes model?
Both intercepts and slopes can differ across groups; lines need not be parallel or meet at one common point.
36
New cards
What is the difference between fixed and random effects in the lecture's framing?
Fixed effects are the explanatory effects of theoretical interest with all treatment conditions represented; random effects are sampled categorical grouping levels used to account for variability and support generalisation.
37
New cards
Why is school included as a random effect in the example?
The schools are a sample of schools, and school-level differences may explain variation in English test scores.
38
New cards
What does adding a random intercept for school allow?
Each school can have its own baseline outcome level while sharing the same predictor slope.
39
New cards
What does adding a random slope for school allow?
The association between the predictor (IQ) and outcome can differ from school to school.
40
New cards
What does including both random intercepts and slopes allow?
Both baseline scores and predictor-outcome relationships can vary by school.
41
New cards
What does 'nested' mean in a hierarchical dataset?
Observations or units are grouped within higher-level units, such as children within classrooms within schools.
42
New cards
What does 'crossed' mean in a mixed model?
Subjects or units encounter all levels of another factor, so the factors are not simply nested.
43
New cards
What should you remember about the number of random-effect levels?
The lecture recommends ideally having at least five levels for accurate estimation.
44
New cards
How does an LMM address non-independent observations?
It models group-level variability through random effects rather than treating all observations as independent.
45
New cards
Why can LMMs be useful when data are missing?
The lecture notes that LMMs can have higher power with missing data.
46
New cards
What does εᵢⱼ represent in the LMM equations?
The residual/error for observation i in group j.
47
New cards
What does the dashed line represent in the lecture's LMM diagrams?
The overall or fixed-effect regression relationship, against which group-specific lines vary.
48
New cards
What is the key interpretation difference between random intercepts and random slopes?
Random intercepts allow group baselines to differ; random slopes allow the predictor effect to differ across groups.