Introduction to Multilevel Models

Many data sets are grouped: students in schools, patients in clinics, or the same people measured week after week. This material shows how to recognize such data, measure clustering with the intraclass correlation and fit multilevel (mixed) models with random intercepts and random slopes. You learn what fixed and random effects are, how to center predictors, compare and test models, check assumptions and report results, and how growth curve models describe individual change over time. Examples show R (lme4), SPSS, jamovi and JASP side by side.

IntermediateLesson 10 of 10 in Intermediate Statistics – Regression and ANOVA Course

What you will learn

  1. Identify when observations are grouped or repeated, explain why ordinary regression misleads with such data, and use the intraclass correlation to measure how much observations in the same group resemble each other.
    • Recognize nested, clustered and repeated-measures data
      Identify the levels in a data set, tell level-1 observations from level-2 groups and arrange the data in long format.
    • Explain why clustering changes the analysis
      Explain how clustering breaks the independence assumption, what this does to standard errors and p-values, and why analyzing group means or one regression per group are weaker alternatives.
    • Measure clustering with the intraclass correlation
      Fit the empty multilevel model, split the outcome's variance into a between-group and a within-group part, and compute and interpret the intraclass correlation.
  2. Distinguish fixed from random effects, fit models in which each group has its own intercept, add predictors at both levels with suitable centering and interpret the results.
    • Distinguish fixed effects from random effects
      Explain what fixed and random effects mean in a mixed model, decide whether a grouping factor should be modeled as random or fixed, and describe how random effects pool information across groups.
    • Write, fit and read a random-intercept model
      Write a random-intercept model as two levels and as one combined equation, fit it in software, and interpret its fixed effects, variance components and predictions.
    • Add predictors at both levels and choose their centering
      Add level-1 and level-2 predictors, separate within-group from between-group effects, and center predictors so that each coefficient answers the intended question.
  3. Let the effect of a level-1 predictor differ between groups, interpret the slope variance and the intercept-slope covariance, and explain differences in slopes with group-level predictors.
    • Let slopes vary across groups
      Write and fit a model with a random slope, interpret the slope variance and the intercept-slope correlation, and see how the spread between groups changes along the predictor.
    • Explain differences in slopes with cross-level interactions
      Use a group-level predictor to explain why a level-1 relation is stronger in some groups, and interpret the cross-level interaction and the conditional effects around it.
  4. Choose between estimation methods, compare nested models and test effects correctly, build a model in sensible steps, check its assumptions and report it in a standard format.
    • Estimate models and test their effects
      Use maximum likelihood and REML for the right purposes, compare nested models with likelihood-ratio tests and information criteria, test fixed effects and variance components, and handle singular fits.
    • Build, check and report a multilevel model
      Build a model in a defensible order, check its assumptions and sample size, and report it so that readers can see the design, the estimates and the decisions taken.
  5. Treat repeated measurements as occasions nested in people, describe each person's trajectory with random intercepts and slopes for time, and test whether change depends on characteristics of the person.
    • Set up and interpret a basic growth model
      Arrange repeated measurements as occasions within people, code time so that the intercept has a clear meaning, and interpret average change and individual differences in change.
    • Explain differences in change and model curved trajectories
      Add person-level predictors of starting level and rate of change, interpret the time-by-group interaction, and extend the model with a quadratic trend, a residual covariance structure and time-varying predictors.

Multilevel Models study guide

5 chapters

1

Recognize multilevel data and measure clustering

Grouped observations share information. A school contributes many students, and a person contributes several measurements, so the row count alone cannot describe the study's precision. Learn to identify the levels and arrange the data, then trace what clustering does to standard errors. The empty model separates between-group from within-group variation and turns that split into an intraclass correlation you can interpret.

1.1 Recognize nested, clustered and repeated-measures data

A row is a record of an observation. It is not necessarily an independent piece of information. Before choosing a model, identify who or what was measured and which observations share a setting or a person.

Name the levels

In student data, students are level 1 and schools are level 2. A school is a cluster: several students belong to it. In repeated-measures data, occasions are level 1 and people are level 2. A diary with 150 people observed on 14 evenings has up to 150×14=2100 rows, but only 150 people.

Classify a variable by asking whether it can differ between two observations in the same cluster. Homework hours can differ between students in one school, so homework is a level-1 predictor. School size has one value for everyone in the school, so it is level 2. Each school's average homework is also level 2, even though it was calculated from a level-1 variable.

This distinction follows the study design. A person's age is a person-level variable in a short diary study, while a daily sleep measure varies across that person's occasions. The column's name alone does not determine its level.

Give each observation its own row

Long format stores one row per level-1 observation, with the cluster ID repeated. For a growth study, the columns might be person, week, and anxiety. Someone measured at weeks 0, 2, and 6 contributes three rows with the same person ID and three different time values.

LayoutWhat a row representsHow occasions appear
LongOne person at one occasionA time column identifies the occasion
WideOne personSeparate score columns represent occasions

A wide file prepared for repeated-measures ANOVA must be reshaped before fitting a growth model. Preserve the actual time values during the reshape. A missed occasion leaves fewer observed rows; it does not turn week 6 into week 4. Schools may also have unequal numbers of students. Such unbalanced data can be used in a multilevel model.

Check which groups contain which units

A hierarchy can have three levels, such as students within classes within schools. Make IDs unique across the data set. If every school numbers its classes 1, 2, and 3, the label "class 1" is ambiguous. IDs such as "S12-C1" and "S18-C1" identify different classes.

Nested factors form a containment structure: each class belongs to one school. Crossed factors classify the same observation in two ways without one containing the other. If every participant rates every photo, a rating belongs to a participant and a photo; neither participants nor photos sit inside the other factor.

To inspect a new file, trace one observation back to each shared influence. Then count distinct IDs and rows per ID. Repeated clinic IDs identify patients sharing a clinic; repeated person IDs identify measurements sharing a person. Treating every long-format row as independent misses the dependency that the model needs to represent.

Key Takeaways

  • Identify level 1 as the observations and level 2 as their groups.
  • A variable is level 1 if it can vary within a group; a group mean is level 2.
  • Use long format with an explicit, unambiguous grouping ID.
  • Nested groups form a hierarchy; crossed factors classify observations in overlapping ways.
  • Unequal group sizes and missing occasions are compatible with multilevel analysis.

1.2 Explain why clustering changes the analysis

Students from one school share teachers, resources, and local conditions. Their scores therefore carry overlapping information. Ordinary regression's independence assumption concerns errors, so a file with many rows can still provide much less independent information than its row count suggests.

Follow the effect on precision

With positive clustering, treating group members as independent commonly makes standard errors too small for group-level comparisons. Confidence intervals become too narrow and false positives become too frequent. A coefficient can look reasonable while its reported precision is misleading. This is especially serious for a school-level predictor because every student in a school repeats the same predictor value.

For equal-sized groups, the design effect for a mean is

deff=1+(m−1)ρ,

where m is group size and ρ is the intraclass correlation. This gives an approximate information count, neff=n/deff. The standard-error multiplier is the square root of the design effect, because standard errors are square roots of sampling variances.

For 2000 students in 80 schools of 25, with an ICC of 0.20:

  1. Subtract one from group size: 25−1=24.
  2. Calculate 1+24(0.20)=5.8.
  3. Divide 2000/5.8≈345 independent-observation equivalents.
  4. Take 5.8≈2.4 for the standard-error multiplier.

These calculations describe the mean and illustrate the loss of information for group-level comparisons; they are not a universal correction for every regression slope. Even a small ICC matters with large groups: at 0.05, groups of 25 give a design effect of 2.2, while groups of 100 give 5.95.

Compare the alternatives
ApproachWhat it estimatesWhat it loses or requires
Analyze group meansA relation between groupsIndividual variation and within-group relations
Separate regressionsEach group's intercept and slopesMany parameters; small groups give noisy estimates
Group indicator variablesSeparate intercepts, common slopesInteractions are needed for separate slopes
Multilevel modelAverage effects and group variationA specified model for the dependence

Aggregation can invite the ecological fallacy. A relation between average homework and average score across schools need not describe the relation between students within a school. School means also differ in precision when sample sizes differ.

School indicators absorb every school-level constant. With a full set of school intercepts, a tutoring-program indicator that is constant within each school cannot have a separately estimated coefficient. Random intercepts instead describe school differences with a variance and allow school-level predictors in the model.

Plan information at the right level

For a question about school policy, recruiting more schools usually adds more useful information than recruiting the same number of additional students from existing schools. More students improve each school's estimate, but they do not create new independent school policies. Report both the number of observations and the number of groups so readers can judge the information behind an effect.

Key Takeaways

  • Positive clustering can make ordinary-regression inference overstate precision, especially for group-level predictors.
  • For equal-sized clusters, a mean has design effect 1+(m−1)ρ.
  • Effective sample size divides the row count by the design effect; the SE multiplier is its square root.
  • A group-level association need not describe a within-group association.
  • Group indicators give separate intercepts; separate slopes require interactions.
  • For group-level questions, the number of groups is a central part of sample size.

1.3 Measure clustering with the intraclass correlation

The empty model separates differences between groups from differences inside groups before adding predictors. It supplies a baseline description of clustering and a reference for examining how predictors change the unexplained variance.

Read the empty model

For observation i in group j,

Yij=γ00+u0j+eij.

The fixed intercept γ00 is the overall mean. The random intercept u0j shifts the mean for group j. The residual eij is an individual's departure from that group mean. The basic model gives the random intercepts mean 0 and variance τ00, and residuals mean 0 and variance σ2. The two parts are independent and normally distributed.

Two students in the same school share u0j but have different residuals. Students from different schools share neither term. This shared random intercept is how the model represents dependence.

Calculate the ICC from variances

The intraclass correlation is

ρ=τ00τ00+σ2.

The numerator is between-group variance; the denominator is total variance. With between-school variance 18 and within-school variance 72, total variance is 90 and the ICC is 18/90=0.20. Thus 20% of score variation lies between schools and 80% within schools. Equivalently, the model gives a correlation of 0.20 for two different students in the same school.

The ICC is a variance share, not a percentage of people. An ICC of 0.20 does not identify a special 20% of students. It summarizes how outcomes vary across the whole hierarchy.

Read software output and recover the units

In R, fit lmer(math ~ 1 + (1 | school), data = students). The Random effects output gives the school intercept variance and the Residual variance. SPSS calls its corresponding table Estimates of Covariance Parameters. Check whether the displayed column contains variances or standard deviations.

If software gives SDs, square them before computing the ICC. Dividing the school SD by the sum of the two SDs gives a different quantity. To describe the spread in score points, go the other way: 18≈4.24 points is the school-intercept SD.

With overall mean 52, the normal random-intercept distribution places about 95% of true school means between 52−1.96(4.24)≈43.7 and 52+1.96(4.24)≈60.3. This describes a distribution of school means. It is not a confidence interval for the overall mean or a range containing 95% of individual scores.

Distinguish initial from remaining clustering

After adding predictors, use the remaining variances for the conditional ICC. Variances 14 and 60 give 14/(14+60)≈0.19. Label which ICC you report. The empty-model ICC describes initial clustering; the conditional ICC describes clustering after adjustment.

School-achievement ICCs around 0.10 to 0.25 are common; repeated scores from one person often have stronger clustering. A small ICC is not a prerequisite test that decides whether the study has groups. The design supplies that structure. ML and REML keep estimated variances nonnegative, so an estimate can stop at zero. Testing a single random-intercept variance uses a boundary-adjusted likelihood comparison, not an ordinary unconstrained coefficient test.

Key Takeaways

  • The empty model divides total variance into between-group and residual components.
  • Compute ICC using variances: τ00/(τ00+σ2).
  • The ICC is both a variance share and a same-group correlation in the empty model.
  • Take a square root to express a variance component in outcome units.
  • Distinguish the empty-model ICC from the conditional ICC after predictors.
2

Build and interpret random-intercept models

A mixed model combines population coefficients with group-specific deviations. Begin by deciding what should be fixed and what should vary across groups, then read a random-intercept model and build predictions from it. Centering makes the intercept meaningful, but different centering choices also answer different questions. Separating individual deviations from group means lets you distinguish within-group, between-group, and contextual effects.

2.1 Distinguish fixed effects from random effects

A mixed model describes the average relation and the ways groups depart from it. Fixed and random name parts of that description. They do not say whether a predictor was randomly assigned or whether it matters scientifically.

Separate a coefficient from a deviation

A fixed effect has one population value: the average intercept or average homework slope, for example. It is estimated with a coefficient, standard error, and confidence interval, much as in multiple regression.

A random effect is a group-specific deviation. A school's intercept may be above or below the population intercept. The model treats those deviations as draws from a distribution with mean zero and estimates the distribution's variance. For 80 schools, an intercept variance replaces the 79 school-indicator coefficients that would describe fixed school differences.

Homework can have both parts. Its fixed slope describes the average relation. Its random slopes describe departures from that average across schools. Calling homework simply "fixed" or "random" can hide this distinction; name the coefficient and the group over which it varies.

Decide how to represent a factor
Question and designUseful representation
Generalize from many sampled schools to a population of schoolsSchool as a random grouping factor
Compare three specific teaching methodsMethod as a fixed categorical predictor
Explain school differences with school-level predictorsRandom school effects plus those fixed predictors

With fewer than about 5 to 10 groups, a variance estimate is very imprecise. Modeling the specific groups with indicators is a common choice in that situation. This is a planning rule of thumb, not a guarantee that one model will fit every small study.

A fixed-effects model in econometrics often means a separate intercept for every group, or the equivalent within-group transformation. That usage differs from the phrase "fixed effects" in a mixed-model output table. Group intercepts absorb predictors that are constant inside a group, preventing separate estimation of their effects.

See how partial pooling works

Partial pooling combines a group's own information with information from other groups. A small or noisy group's predicted deviation is pulled more strongly toward zero. This pull is shrinkage.

In the empty model, an approximate shrinkage weight is

λj=τ00τ00+σ2/nj.

Suppose the overall mean is 52, a school's observed mean is 60, and the variances are 18 between schools and 72 within schools. The observed school deviation is 8 points. With 25 students, λ=18/(18+72/25)≈0.86, giving a predicted deviation of about 6.9 points. With four students, λ=18/(18+72/4)=0.50, giving 4.0 points.

Complete pooling predicts zero deviation for both schools. No pooling keeps the observed deviation of 8 for both. Partial pooling allows the amount of evidence from each school to affect its prediction.

R's ranef() returns predicted random effects, often called conditional modes or BLUPs. These predictions can describe group differences, but they are not exact school effects. A ranking based on them still has uncertainty, especially when groups are small.

Key Takeaways

  • Fixed effects describe population coefficients; random effects describe group deviations.
  • One predictor can have both an average slope and random slope deviations.
  • Choose a grouping representation from the study question, generalization, and number of groups.
  • Partial pooling shrinks small or noisy groups more strongly.
  • Predicted random effects carry uncertainty and should not be treated as exact rankings.
  • The econometric phrase "fixed-effects model" often means group-specific intercepts.

2.2 Write, fit and read a random-intercept model

A random-intercept model gives every school its own starting height while keeping one common predictor slope. Its group lines are parallel. The random intercept accounts for clustering without requiring a separate fixed coefficient for every school.

Combine the two levels

At level 1, write Yij=β0j+β1Xij+eij. At level 2, write β0j=γ00+u0j. Substituting the second equation into the first gives

Yij=γ00+γ10Xij+u0j+eij.

Here γ00 is the average intercept and γ10 is the common slope. The school deviation u0j changes height, not slope. Some books use the letter b for coefficients that other books call beta or gamma; follow each symbol's role.

Fit the same model in different software
SoftwareModel setup
R, lme4Fixed homework slope with a random school intercept
SPSSAnalyze > Mixed Models > Linear; school in Subjects, homework as a fixed covariate, intercept in Random
jamovi, GAMLjMixed Models; school in Cluster, homework as covariate, random intercept selected
JASPMixed Models > Linear Mixed Models; school as grouping factor, homework fixed, intercept random

In R, fit lmer(math ~ homework_c + (1 | school), data = students). Use the same long data and predictor coding. A continuous homework variable and a categorical school ID play different roles, even if both columns contain numbers. Request fixed-effect estimates and the random-effect variances or SDs.

Build a prediction

For 2000 students in 80 equal-sized schools, let homework be centered at 5 hours per week. Estimates are intercept 52.0, homework slope 1.5, school-intercept variance 14, and residual variance 60. The intercept is the predicted score at 5 homework hours in a school whose random deviation is zero.

For a student doing 8 hours, the centered value is 8−5=3. In a sampled school with predicted deviation 3.0, the prediction is 52+1.5(3)+3=59.5. For a new school whose deviation is unknown, the population prediction sets that deviation to zero: 52+1.5(3)=56.5. The unknown residual is also set to its mean of zero for either prediction.

The common slope blends within-school and between-school associations when the predictor's school mean is absent. Centering at the overall mean does not turn it into a pure within-school effect.

Interpret the remaining variation

The school-intercept SD is 14≈3.74 score points. Around 95% of school intercepts fall between approximately 44.7 and 59.3 under the normal random-effects distribution. The variance 14 itself is in squared score units, not score points.

Compared with empty-model variances 18 and 72, the proportional reductions are (18−14)/18≈0.22 between schools and (72−60)/72≈0.17 within schools. These are level-specific pseudo-R-squared measures. A component can increase after adding a predictor, so these measures can be slightly negative. The conditional ICC is 14/74≈0.19.

Key Takeaways

  • Random intercepts shift parallel regression lines up or down.
  • Interpret an intercept at predictor zero and state how the predictor was centered.
  • Add a sampled group's predicted deviation for a group-specific prediction.
  • Use variance reductions separately at each level; they are not ordinary regression R-squared.

2.3 Add predictors at both levels and choose their centering

A predictor can answer different questions at different levels. A student's extra hour of homework compared with schoolmates is not the same comparison as attending a school where average homework is an hour higher. Centering helps define these comparisons.

Add a school-level predictor

Let tutoring equal 1 for a school with a program and 0 otherwise. Its fixed coefficient enters the intercept equation:

β0j=γ00+γ01Zj+u0j.

An estimate of 4.0 means a four-point adjusted difference between program and non-program schools. With SE 1.6, the Wald statistic is 4/1.6=2.5. About 78 Satterthwaite degrees of freedom give a p-value of .015 and a 95% interval of 4±1.991(1.6), or approximately 0.81 to 7.19 points. The information comes from the 80 schools, not 2000 independent program assignments.

A school-level predictor mainly explains between-school variation. If intercept variance falls from 14 to 10.5, the reduction is (14−10.5)/14=0.25, or 25% of the remaining between-school variance. The residual variance may change little because program status does not vary within a school.

Choose a meaningful zero

Grand-mean centering subtracts the overall mean. If average homework is 5 hours, use Xij−5. In an additive random-intercept model, this moves the intercept to 5 hours without changing the slope or model fit.

Group-mean centering subtracts the school's own mean: Xij−Xˉj. A value of 2 now means two hours above that student's school average. Two students with this same centered value may have different raw homework hours if their schools have different means.

PredictorComparison it supports
Homework minus overall mean, entered aloneA blend of within-school and between-school relations
Homework minus school meanStudents compared with schoolmates
School mean, alongside within-school deviationsSchools compared with schools
Separate within, between, and contextual effects

Enter both the within-school deviation and the school mean:

Yij=a+bW(Xij−Xˉj)+bBXˉj+u0j+eij.

If bW=1.5 and bB=3.0, one more hour relative to schoolmates is associated with 1.5 more points. A school average one hour higher is associated with 3.0 more points. The contextual effect is bB−bW=1.5: the school-average difference when students' own homework is held constant.

Why subtract? Expanding the equation gives bWXij+(bB−bW)Xˉj. Thus, when raw homework and the school mean are entered together, the school-mean coefficient is contextual. When deviations and the mean are entered together, that coefficient is between-school. Read the coding before naming the effect.

For a program comparison adjusted for homework composition, include both deviations and school means so the two homework relations can differ. Keep 0/1 predictors on their meaningful scale, and compare variance reductions using consistent centering and cases.

Key Takeaways

  • Level-2 predictors enter the group-intercept equation and mainly explain between-group variation.
  • Grand-mean centering changes the reference point; group-mean centering creates within-group deviations.
  • Include deviations and group means to estimate within and between effects separately.
  • The contextual effect equals the between effect minus the within effect.
  • The group-mean coefficient changes meaning when raw values replace within-group deviations.
  • Use group-level information and appropriate degrees of freedom for group-level effects.
  • Hold coding and the analyzed cases consistent when comparing variance reductions.
3

Fit and interpret random-slope models

The same predictor can have different slopes in different groups. Random slopes describe that spread, while a cross-level interaction asks whether a group characteristic explains part of it. Learn to read slope variances and intercept-slope covariance, follow the changing distance between group lines, and calculate conditional slopes and group differences. Keep the predictor's zero point visible throughout the interpretation.

3.1 Let slopes vary across groups

Parallel school lines are a strong restriction. If homework relates more strongly to scores in some schools than in others, a random-slope model gives the slope its own school-specific deviation.

Give the slope a random part

Write β1j=γ10+u1j. The combined model is

Yij=γ00+γ10Xij+u0j+u1jXij+eij.

The fixed slope γ10 is the average slope. The random deviation u1j is added to it for school j. The random part now estimates intercept variance τ00, slope variance τ11, and intercept-slope covariance τ01.

In R, lmer(math ~ homework_c + (1 + homework_c | school), data = students) fits both random effects with a freely estimated covariance. Replacing | with || sets the covariance to zero for this numeric predictor. In SPSS, put intercept and homework in Random and choose Unstructured covariance; Variance Components gives a diagonal structure. In GAMLj and JASP, select homework as a random coefficient alongside the intercept and check whether their correlation is estimated.

A predictor must vary within the grouping units to support its slope variation across those units. A school-level program indicator is constant inside each school, so it cannot have an identifiable random slope across those same schools.

Put slope variation into useful units

With average slope 1.5 and slope variance 0.25, the slope SD is 0.25=0.5 points per homework hour. The normal random-slope distribution places about 95% of school slopes between 1.5−1.96(0.5)=0.52 and 1.5+1.96(0.5)=2.48. This is a distribution of school slopes, not the confidence interval for their average.

With intercept variance 14 and covariance −0.6, the intercept-slope correlation is

r=−0.614(0.25)≈−0.32.

At homework centered at 5 hours, schools with higher predicted scores at 5 hours tend to have flatter slopes. The zero point matters: moving it changes which school heights count as intercepts and can change this correlation.

Track how the group spread changes

At centered predictor value X, between-school variance is

VB(X)=τ00+2Xτ01+X2τ11.

At 2 homework hours, X=−3, giving 14+2(−3)(−0.6)+9(0.25)=19.85. At 5 hours, X=0 and the variance is 14. It reaches its minimum at X=−τ01/τ11=2.4, corresponding to 7.4 hours, where it is 12.56. At 8 hours it rises slightly to 12.65.

Negative covariance therefore means the lines initially fan in as the predictor rises from zero; it does not mean their spread shrinks forever. There is no single constant ICC across predictor values in this model.

An average slope near zero can coexist with substantial slope variation. Omitting real slope variation can overstate the precision of the average slope. Conversely, adding many random slopes with limited group information can produce zero variances or perfect correlations: signs of a singular fit that needs investigation.

Key Takeaways

  • A random slope adds a group-specific deviation to the average slope.
  • The random intercept-slope model estimates two variances and a covariance.
  • Take the square root of slope variance to describe slope spread in slope units.
  • Interpret intercept-slope covariance at the chosen predictor zero.
  • Between-group variance changes with the predictor through τ00+2Xτ01+X2τ11.
  • A near-zero average slope does not rule out substantial differences between group slopes.

3.2 Explain differences in slopes with cross-level interactions

A random slope shows that a relation varies across groups. A cross-level interaction asks whether a measured group characteristic helps explain that variation. The interaction is a fixed predictor of the slope; random slope variation remains around the predicted slopes.

Put the group predictor into the slope equation

Let X be centered homework and Z indicate a school tutoring program. Use

β0j=γ00+γ01Zj+u0j, β1j=γ10+γ11Zj+u1j.

Substitution produces the fixed interaction term γ11ZjXij alongside both lower-order terms. Its coefficient tells how much the homework slope changes when program status changes from 0 to 1.

In R, use lmer(math ~ homework_c * tutoring + (1 + homework_c | school), data = students). The * adds both fixed main terms and their interaction. In SPSS, GAMLj, and JASP, include the product in the fixed-effects model and retain the random homework slope. Set the same 0/1 reference coding before comparing output across programs.

Calculate each group's slope

Suppose the fixed intercept is 50.5, program coefficient 4.0, homework coefficient 1.8, and interaction −0.6. For a school with random deviations zero:

School typePredicted lineHomework slope
No program, Z=050.5+1.8X1.8 points per hour
Program, Z=154.5+1.2X1.2 points per hour

The negative interaction reduces the slope by 0.6; it does not make the slope negative. At 2 hours of homework, X=−3, predicted scores are 45.1 without the program and 50.9 with it. At 5 hours, they are 50.5 and 54.5; at 8 hours, they are 55.9 and 58.1.

Interpret the program difference at a stated homework value

The program gap is 4.0−0.6X. It is 5.8 points at 2 hours, 4.0 at 5 hours, and 2.2 at 8 hours. The program coefficient 4.0 is the difference only at centered homework zero. The homework coefficient 1.8 is the slope only for the reference category, schools without a program. These are conditional effects.

If the scientific question is specifically about within-school homework relations, use within-school-centered homework with school means in the model. Grand-mean-centered homework alone can mix within-school and between-school relations, even when an interaction is present.

Describe what the interaction explains

If slope variance falls from 0.25 to 0.16, the proportional reduction is (0.25−0.16)/0.25=0.36. Program status explains 36% of the previously unexplained slope variation. The remaining 0.16 represents differences not accounted for by program status.

Keep the random slope when testing the interaction so uncertainty reflects residual slope variation. Theory can justify testing a cross-level interaction even if a separate test of slope variance is not significant. A fixed interaction and a random slope answer different questions: a systematic difference linked to a predictor and the remaining spread around that difference.

Key Takeaways

  • A cross-level interaction lets a level-2 predictor explain a level-1 slope.
  • Calculate a conditional slope by adding the interaction contribution to the reference slope.
  • With an interaction, a group coefficient describes the gap at predictor zero.
  • Retain random slope variation when testing the fixed interaction.
  • Compare slope variances to describe how much slope variation the group predictor explains.
4

Estimate, compare, check and report multilevel models

A useful model needs estimates, defensible comparisons, and checks of the assumptions behind them. Choose ML or REML to match the comparison, account for the boundary when testing variances, and read fixed-effect tests with their degrees-of-freedom method. Then examine residuals and influential groups, judge the information supplied by the group count, and report enough of the fixed and random parts for readers to assess the analysis.

4.1 Estimate models and test their effects

Model output combines estimation, fit comparisons, and tests of individual effects. These tools use different reference distributions. Start each comparison by checking what changed and whether both models used exactly the same observations.

Match estimation to the comparison

Maximum likelihood (ML) estimates parameters by maximizing the likelihood. Restricted maximum likelihood (REML) accounts for estimating fixed effects when estimating variance components, reducing their small-sample bias. REML is the default in lme4 and SPSS MIXED.

TaskEstimation choice
Compare models with different fixed effectsML for both models
Compare random structures with the same fixed effectsREML is a usual choice
Estimate the final selected modelREML

REML likelihoods with different fixed effects are not comparable. In R, anova() on fitted lme4 models refits REML models with ML by default. For a deliberate REML comparison of random structures, keep the fixed effects identical and use refit = FALSE.

Compare nested models

Deviance is minus twice the log-likelihood. The likelihood-ratio statistic subtracts the larger model's deviance from the smaller model's deviance. For ordinary fixed-effect comparisons, compare it with chi-square degrees of freedom equal to the added parameter count. The models must be nested: the smaller must be obtained by restricting the larger.

A variance of zero is on a boundary because variances cannot be negative. For one added random-intercept variance, the usual asymptotic boundary test halves the ordinary one-df chi-square p-value. A statistic of 3.2 gives about .074 before correction and .037 after it.

Adding a random slope and its covariance to an existing random-intercept model adds two parameters. The boundary reference is a 50:50 mixture of chi-square with one and two df. Deviances 14620.4 and 14608.9 differ by 11.5. The mixture gives about .0019, while an ordinary two-df test gives about .0032. Do not halve every random-effects p-value: identify which variance and covariance parameters were added.

Balance fit against complexity

For the same data and comparable likelihoods,

AIC=D+2k,BIC=D+kln⁡N.

Here D is deviance and k counts estimated parameters. Lower is preferred. With ML, the intercept model has four parameters and the slope model six. Their AICs are 14628.4 and 14620.9, favoring random slopes. Using N=2000, their BICs are approximately 14650.8 and 14654.5, favoring the simpler model. BIC applies a larger penalty here; programs may use different definitions of its sample size. Information criteria also allow nonnested comparisons when the likelihoods are comparable.

Test coefficients and diagnose the fit

A fixed-effect Wald statistic is t=estimate/SE. Mixed-model degrees of freedom are approximated. lmerTest and SPSS MIXED use Satterthwaite by default; Kenward–Roger is another small-sample method. lme4 alone gives t values without p-values. Report the method, especially for group-level effects whose information is tied to the number of groups.

Wald z tests for variance components are unreliable near zero because the sampling distribution is bounded and skewed. Use an appropriate likelihood comparison or profile interval.

A singular fit has a degenerate random-effects covariance matrix: in an intercept-slope model, a variance near zero or correlation near ±1. Check the data and scaling, then consider dropping the correlation or an unsupported random slope. Singularity and failure to converge are different problems; resolve convergence warnings before interpreting estimates.

Key Takeaways

  • Use ML to compare different fixed-effects models and REML for final variance estimation.
  • Compare nested models on exactly the same observations.
  • Variance-component LRTs need a boundary reference distribution.
  • Lower AIC or BIC trades improved fit against added parameters.
  • Report the approximation used for fixed-effect degrees of freedom.
  • Investigate singularity and resolve nonconvergence before interpreting a model.

4.2 Build, check and report a multilevel model

A defensible model starts with a research question and a description of the data structure. Fit comparisons help evaluate candidates, but they cannot choose the scientific question or repair an incorrect hierarchy.

Build in interpretable steps

Start with the empty model and its ICC. Add relevant level-1 predictors, then level-2 predictors. Consider random slopes for level-1 relations that theory suggests may differ, and cross-level interactions that could explain those differences. Keep track of the analyzed cases and predictor coding at every stage.

Compare fixed-effects changes with ML. After selecting the model, refit with REML for the reported estimates. An added predictor with missing values can reduce the case count; refit comparison models on the same rows before comparing likelihoods. A lower deviance obtained from fewer observations is not evidence of better fit.

Check assumptions at both levels

The basic linear mixed model assumes linear relations, approximately normal residuals with constant variance, normal random effects with mean zero, and independence of residual observations after the modeled dependence is accounted for. It also assumes random effects are uncorrelated with predictors.

A random intercept handles a shared group offset. It does not account for every possible dependency. For repeated data, nearby occasions may still have correlated residuals, requiring a residual covariance structure.

Use residual-versus-fitted plots to look for curves and funnels. Curves suggest a missing nonlinear relation; funnels suggest unequal residual variance. Q–Q plots check residual shape. A Q–Q plot of predicted random effects is only approximate because those predictions are shrunken. Check influential groups by refitting without an unusual group and comparing substantive conclusions.

If school means of homework are related to unmeasured school differences, a single homework slope can blend within and between relations. Within-school deviations plus school means separate them and address confounding by group-constant differences for the within effect. They do not remove confounding by unmeasured differences between students inside a school.

Judge information at the group level

More groups improve information about the distribution of group effects. Common planning guidelines suggest about 30 groups for many fixed-effect questions and clearly more than 50 when variance components are central. These are rules of thumb, based partly on simulation findings, not guarantees. A study with many small groups can be informative; a huge number of individuals in only a few groups does not make a between-group variance precise.

Report enough to reconstruct the analysis

Give the number of observations and groups, the range of group sizes, and the time schedule for longitudinal data. Name the software, estimation method, predictor coding, and degrees-of-freedom method. Report model comparisons with their reference distributions, fixed estimates with SEs and confidence intervals, and random variances or SDs with their correlations. Label variance and SD columns explicitly.

For example: "Students (N = 2000) were nested in 80 schools of 25. The empty-model ICC was .20. Schools with a tutoring program scored higher, b = 4.0, SE = 1.6, t(78) = 2.50, p = .015, 95% CI [0.81, 7.19], using REML and Satterthwaite degrees of freedom."

That sentence supplies the design and a fixed effect. A full report also includes the variance components and relevant diagnostics; a table can present these without a long sequence of repeated test sentences.

Key Takeaways

  • Build candidate models from the research question and retain a record of cases and coding.
  • Check residual shape, spread, remaining dependence, and influential groups.
  • Group count matters for precision, especially for variance components.
  • Report both fixed effects and random variation, with estimation and test methods.
5

Model change over time with growth curve models

Repeated measurements describe trajectories within people. Coding time gives the intercept its meaning and the slope its units; random intercepts and slopes then describe differences in starting levels and rates. Extend those trajectories with person-level predictors, interactions, and curved trends. Available observations can contribute even when visits are missed, while residual time dependence and missingness still need careful attention.

5.1 Set up and interpret a basic growth model

A growth curve model treats measurements as occasions within people. Each person has a trajectory, and the model estimates both average change and differences between people's trajectories. Time is a level-1 predictor, while stable person characteristics are level 2.

Set up the data and time scale

Use one row per person per occasion. For measurements at weeks 0, 2, 4, 6, and 8, store those values in the time column. Using 0, 1, 2, 3, and 4 instead changes the slope's unit to points per two-week interval. Unequally spaced measurements must retain their actual timing.

Time zero defines the intercept. Weeks since baseline make the intercept a baseline prediction. Subtracting 4 from week centers the intercept at week 4. In a linear model, this changes intercepts, their variance, and their covariance with slopes, but leaves the average weekly slope unchanged. Coding the first measurement as 1 puts time zero before the first measurement.

Write the individual lines

At level 1,

Yti=β0i+β1itimeti+eti.

At level 2, β0i=γ00+u0i and β1i=γ10+u1i. The average starting level is γ00 and the average rate of change is γ10. People differ through their intercept and slope deviations.

In R, use lmer(anxiety ~ week + (1 + week | person), data = long). In SPSS, choose person under Subjects and week as a fixed covariate and random coefficient. In GAMLj or JASP, choose person as the cluster and include both intercept and time in the random effects. Use a continuous time covariate for a straight-line growth model.

Read an average and an individual trajectory

For 200 adults measured over 8 weeks on an anxiety scale from 0 to 60, suppose the average intercept is 30.0 and slope −1.2 points per week. At week 4 the average prediction is 30−1.2(4)=25.2; at week 8 it is 30−1.2(8)=20.4.

With intercept variance 36 and slope variance 0.16, their SDs are 6 points and 0.4 points per week. About 95% of person slopes lie between −1.2−1.96(0.4)≈−1.98 and −1.2+1.96(0.4)≈−0.42 under the normal model. Covariance −0.72 gives correlation −0.72/(6×0.4)=−0.30: higher starters tend to decline faster.

A person with intercept deviation +4 and slope deviation −0.3 starts at 34 and changes by −1.2−0.3=−1.5 points per week. Their predicted week-8 score is 34−1.5(8)=22. Add both deviations before using the person's line.

Use incomplete data thoughtfully

A person missing one score can contribute their other observed scores. Likelihood-based growth analysis supports missing outcomes under missing at random, with a correctly specified model: missingness may depend on observed history but not on the unseen outcome after that history is accounted for. Include relevant observed predictors of missingness. Missing predictor values can still remove rows.

Unlike standard repeated-measures ANOVA, growth models allow person-specific schedules and model dependence without sphericity. With only two common occasions per person, a freely varying intercept-slope covariance and residual variance cannot all be separated. At least three occasions for a good share of people support the basic random linear trajectory; richer random curves need more information.

Key Takeaways

  • Growth models place occasions at level 1 and people at level 2.
  • Time zero determines the intercept; actual spacing determines the slope units.
  • Combine fixed and person-specific effects to predict an individual trajectory.
  • Take square roots of growth variances to describe differences in starting level and rate.
  • Use available outcomes under missing at random and a correctly specified model; check missing predictors too.

5.2 Explain differences in change and model curved trajectories

People may change at different rates because they received different treatments or have different characteristics. Change may also slow or accelerate. Extend the growth model by asking separately what predicts the starting level, what predicts the slope, and whether a straight line fits the observed period.

Let a person-level predictor explain change

For group indicator G, use

β0i=γ00+γ01Gi+u0i, β1i=γ10+γ11Gi+u1i.

The fixed time-by-group interaction γ11 is the difference in rates of change. In R: lmer(anxiety ~ week * condition + (1 + week | person), data = long). In SPSS, GAMLj, or JASP, include time, condition, and their product as fixed terms, with random intercept and time slope by person. Use 0/1 coding to match the reference-group interpretation.

Suppose waitlist is 0 and therapy is 1. Estimates are intercept 30.2, group −0.4, time −0.7, and interaction −1.0. The waitlist starts at 30.2 and declines 0.7 points per week. Therapy starts at 30.2−0.4=29.8 and declines −0.7−1.0=−1.7 points per week.

At week 8 the predictions are 24.6 and 16.2, a therapy-minus-waitlist gap of −8.4 points. The same gap comes from −0.4+8(−1.0). The condition coefficient is the baseline gap; the interaction describes differential change. Random assignment makes a zero baseline difference the expectation, but a sample can still have a baseline imbalance.

Fit and read a curved trajectory

Add a fixed squared-time term:

Y^=30−2t+0.10t2.

At week 8, 30−16+6.4=20.4. The instantaneous rate is the linear coefficient plus twice the quadratic coefficient times time: −2+0.20t. It is −2 at baseline and −0.4 at week 8. The positive quadratic term bends a declining trajectory upward, so improvement slows during the observed weeks.

The lowest point is at week 10, beyond the observed period. Do not use that fitted turning point to claim a later reversal. In a quadratic model, the linear coefficient is the rate at time zero, so recentering time changes it. Three distinct times can identify an average quadratic trend; a freely varying random quadratic term generally needs at least four common occasions. With about five occasions, avoid adding higher-order polynomials without strong support.

Check remaining time dependence

Random trajectories may leave residual correlation between nearby occasions. For equally spaced occasions, an AR(1) residual structure gives correlation ρ one interval apart, ρ2 two intervals apart, and so on. A missing visit does not shorten the elapsed gap. For irregular timing, use a structure that represents actual time distances.

SPSS offers residual structures through Repeated. In R, nlme or glmmTMB supports residual structures; lme4 does not directly specify them. Compare candidate residual structures on the same data with the same fixed effects.

A time-varying predictor such as sleep can be split into each person's average sleep and the occasion's deviation from that average. Their coefficients separate differences between people from differences within a person. Entering sleep alone can blend the two relations.

Key Takeaways

  • Time-by-group interactions describe differences in rates; group coefficients describe gaps at time zero.
  • Add the interaction to the reference slope before predicting the second group.
  • A positive quadratic term can describe a slowing decline.
  • Interpret a curve within the observed time range.
  • Residual time dependence can remain after random intercepts and slopes.
  • Separate person means from occasion deviations for time-varying predictors.

Multilevel Models examples

5 Walkthroughs

1

Find the groups and calculate their shared variation

12 steps
Identify a hierarchy, follow its effect on information, and use an empty model to interpret clustering.
  1. 1
    IntroductionStart with who shares what

    A study records 2000 students in 80 schools. Two students from one school share an environment, so their scores need not be independent. The ICC measures how strongly scores cluster within schools, and ignoring that clustering overstates precision.

    First identify the observations and their groups. Then follow how shared information affects precision (the design effect), and use a model with no predictors, the empty model, to measure the variation between schools.

  2. 2
    ExplanationName the observations and groups

    Students are level 1; schools are level 2. A student's homework can differ from a classmate's, so it is level 1. School size is the same for all rows from one school, so it is level 2.

    For repeated measurements, replace students with occasions and schools with people. The lower level is the measurement occasion, even though a person supplied the score.

  3. 3
    ExampleGive the groups usable IDs

    Long data keep one student per row, with school ID beside the score and predictors. If classes are also recorded, a class ID must identify one actual class across the whole file.

    "S3-C1" and "S9-C1" distinguish class 1 in two different schools. A plain class number of 1 would merge them. In repeated data, long format instead gives one person-occasion per row, retaining the actual measurement time.

  4. 4
    ChallengeLocate the repeated units

    A study records pain on six occasions for each of 120 people. What are the level-1 and level-2 units, and how many long-format rows can there be?

    ---reveal---

    The occasions are level 1 and the 120 people are level 2. With complete observations there are 6×120=720 rows. A missed occasion reduces the observed row count; it does not create a new person or erase the person's other scores.

  5. 5
    ExplanationFollow dependence into the SE

    Same-school students share influences that make their outcomes correlated. For a school-level comparison, ignoring that dependence counts repeated school information as if it were new.

    The coefficient may still look reasonable, while its standard error is too small and its confidence interval too narrow. This explains why a large individual sample does not by itself make a school-level effect precise.

  6. 6
    ExampleCalculate the design effect

    For equally sized groups, a mean has design effect 1+(m−1)ρ. Each school has 25 students, and suppose the ICC is 0.20.

    The design effect is 1+24(0.20)=5.8. Dividing 2000/5.8 gives about 345 independent-observation equivalents. The SE multiplier is 5.8≈2.4, not 5.8, because standard errors use the square root of sampling variance.

  7. 7
    ChallengeDecide where new information comes from

    For a school-level policy question, why could adding 20 new schools be more useful than adding many students to the same schools?

    ---reveal---

    New schools supply new group-level information about policies and school differences. More students in existing schools improve estimates of those schools' means, but they do not create new school-level realizations. The number of groups limits what can be learned about group-level effects.

  8. 8
    ExplanationSplit a score into three pieces

    The empty model is Yij=γ00+u0j+eij. A score combines the overall mean, the school's departure from it, and the student's residual.

    The school deviations have variance τ00, and residuals have variance σ2. Students in one school share the school deviation. That shared part creates the model's same-school correlation.

  9. 9
    ExampleTurn the variance split into an ICC

    Suppose the empty model gives between-school variance 18 and residual variance 72. Add them to get total variance 90.

    The ICC is 18/(18+72)=0.20. Thus 20% of variation lies between schools. It is also the model's correlation for two different students from the same school. It does not mean that exactly 20% of students are influenced by their school.

  10. 10
    ChallengeUse the right output column

    Software reports a group SD of 2 and residual SD of 4. What is the ICC?

    ---reveal---

    Square the SDs first: between variance is 4 and residual variance is 16. The ICC is 4/(4+16)=0.20. Using 2/(2+4) would partition standard deviations instead of variances. An SD is useful for describing spread in outcome units, but it does not go directly into the ICC formula.

  11. 11
    ChallengeCheck a claim about many rows

    A researcher says, "The file has one row per student, so its 2000 rows are independent." What design information and model result would help correct that claim?

    ---reveal---

    Identify which rows share a school ID, then use the empty-model variance split to describe their clustering. Separate rows preserve individual records; they do not remove shared school influences. Report school count alongside student count and use a model that represents the dependence.

  12. 12
    RecapConnect the design to the information

    Identify the observation and group before counting independent information. Long format preserves the records and IDs needed to fit that structure.

    The design effect illustrates the loss of information from positive clustering for a mean. The empty model estimates the between and residual variances, and their ratio gives the ICC. Group averages answer a group question and cannot substitute for an individual-level relation.

2

Build predictions and separate the two levels

14 steps
Move from fixed and random effects to random-intercept predictions, then distinguish within, between, and contextual associations.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionGive each group a starting height
  2. 2
    ExplanationSeparate average effects from departures
  3. 3
    ExampleShrink a noisy group prediction
  4. 4
    ChallengeCompare the amount of shrinkage
  5. 5
    ExplanationWrite the model you will predict from
  6. 6
    ExampleCenter before multiplying
  7. 7
    ExampleAdd the sampled school deviation
  8. 8
    ChallengeKeep slope and height separate
  9. 9
    ExplanationChoose the comparison before centering
  10. 10
    ExamplePut deviations and group means together
  11. 11
    ExplanationHold the student's own hours constant
  12. 12
    ChallengeRead a differently coded output
  13. 13
    ChallengeAdjust a school comparison
  14. 14
    RecapRead the coding alongside the coefficients
3

Let group slopes differ and explain the differences

11 steps
Read slope variation, track group spread across a predictor, and interpret a cross-level interaction.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMove beyond parallel lines
  2. 2
    ExplanationGive each school its own slope
  3. 3
    ExampleRead the slope distribution
  4. 4
    ExplanationInterpret covariance at the reference point
  5. 5
    ExampleLocate where group spread is smallest
  6. 6
    ChallengeAvoid a constant-ICC shortcut
  7. 7
    ExplanationLet a school characteristic predict the slope
  8. 8
    ExampleCalculate both lines
  9. 9
    ChallengeFind the gap away from zero
  10. 10
    ChallengeExplain the remaining slope variation
  11. 11
    RecapSeparate average, systematic, and remaining differences
4

Choose a valid comparison and check the fitted model

13 steps
Match estimation and tests to model changes, diagnose assumptions, and report fixed and random results together.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMake each comparison answer one question
  2. 2
    ExplanationUse ML and REML for the right tasks
  3. 3
    ExplanationCheck nesting and the observations
  4. 4
    ExampleAdjust a variance-component test
  5. 5
    ExampleAccount for the added covariance
  6. 6
    ConnectionBalance fit against extra parameters
  7. 7
    ChallengeRepair an invalid test
  8. 8
    ExplanationBuild from the scientific question
  9. 9
    ExampleRead the residual pattern
  10. 10
    TipCount groups and examine influence
  11. 11
    ChallengeComplete the report
  12. 12
    ChallengeCheck a claim that convergence is enough
  13. 13
    RecapLink the test to the fitted structure
5

Follow average and individual change

14 steps
Code time, build individual predictions, interpret treatment differences, and extend a straight-line trajectory.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTreat occasions as observations within people
  2. 2
    ExplanationGive the time column a meaningful zero
  3. 3
    ExampleBuild the average trajectory
  4. 4
    ExampleAdd the person's own departures
  5. 5
    ChallengeRead the time origin
  6. 6
    TipKeep the observed visits
  7. 7
    ExplanationSeparate the baseline gap from the rate gap
  8. 8
    ExampleCalculate the treatment trajectory
  9. 9
    ChallengePredict a gap at a later visit
  10. 10
    ExampleRead a slowing decline
  11. 11
    ExplanationCheck dependence left after the trajectories
  12. 12
    ConnectionSeparate a person's usual level from a daily departure
  13. 13
    ChallengeMove the clock in a treatment model
  14. 14
    RecapKeep time, people, and comparisons aligned

Multilevel Models practice questions

40 Practice Questions in 4 sets

Set 1: Practice 1: Read the hierarchy and basic models10 Practice Questions

Question 1 of 10

A survey samples 50 teams of 16 workers and estimates ICC = 0.10 for a mean. About how many independent-observation equivalents does the sample contain?
  1. 320
  2. 500
  3. 80
  4. 1250
Show answerHide answer
Answer: A
The design effect is 1+15(0.10)=2.5, and there are 800 observations. Dividing 800 by 2.5 gives 320 independent-observation equivalents. Dividing by the ICC alone would miss how group size contributes to the information loss.

Question 2 of 10

An empty model gives clinic variance 12 and residual variance 48. What is the ICC?
  1. 0.25
  2. 0.80
  3. 0.33
  4. 0.20
Show answerHide answer
Answer: D
Total variance is 12+48=60, so the between-clinic share is 12/60=0.20. Dividing 12 by 48 gives 0.25, but that compares between variance with residual variance instead of with total variance. The ICC describes variation, not a percentage of patients.

Question 3 of 10

Why does a mixed model usually shrink a small clinic's predicted deviation more than a large clinic's deviation?
  1. Its population intercept must be closer to zero.
  2. Its observed mean contains less precise information.
  3. Its outcome scale has a smaller residual variance.
  4. Its fixed slope is estimated from fewer predictors.
Show answerHide answer
Answer: B
A small clinic supplies less precise evidence about its own mean, so partial pooling gives more weight to the overall pattern. Shrinkage does not establish that its true deviation is smaller. It adjusts the prediction to reflect how much information the clinic contributes.

Question 4 of 10

A random-intercept model predicts recovery score from exercise hours centered at 4. The fixed intercept is 40, slope 2, and a clinic's predicted deviation is −3. What is the prediction for 7 hours in that clinic?
  1. 51
  2. 46
  3. 43
  4. 40
Show answerHide answer
Answer: C
Seven hours corresponds to centered exercise 3. The fixed prediction is 40+2(3)=46; adding the clinic deviation −3 gives 43. Using 7 directly in the slope term ignores the stated centering and changes the meaning of the intercept.

Question 5 of 10

A study records daily fatigue for 12 days in each of 96 workers. What are the level-2 units?
  1. The daily scores
  2. The 12 workdays
  3. The 96 workers
  4. The worker-days
Show answerHide answer
Answer: C
Occasions are nested within workers, so each worker is a level-2 unit and each daily rating is level 1. The 12 workdays describe when measurements occur; they are not the groups containing each worker's repeated observations.

Question 6 of 10

An additive model uses training hours minus each team's mean, plus the team mean. Their coefficients are 2 and 5. If the model is rewritten with raw hours and team means, what is the team-mean coefficient, and what comparison does it represent?
  1. 3; teams compared at the same individual hours
  2. 5; teams compared at the same individual hours
  3. 3; workers compared within the same team
  4. 7; workers compared within the same team
Show answerHide answer
Answer: A
Expanding 2(hours−team mean)+5(team mean) gives 2(hours)+3(team mean). The new mean coefficient is the contextual effect: a team difference holding a worker's own hours constant. Keeping 5 would confuse the between-team coefficient with the contextual coefficient.

Question 7 of 10

A model reports a random-slope variance of 0.36 for practice time. What is the SD of group slopes?
  1. 0.36
  2. 0.60
  3. 0.18
  4. 0.1296
Show answerHide answer
Answer: B
Take the square root of the variance: the slope SD is 0.60. It has the units of the slope, such as score points per hour. Reporting 0.36 as the SD leaves the variance on a squared scale and understates the spread of the slopes here.

Question 8 of 10

In a model with skill hours and a 0/1 coaching indicator, the hours coefficient is 2.4 and the interaction is −0.7. What is the hours slope for coached teams?
  1. −0.7 points per hour
  2. 2.4 points per hour
  3. 3.1 points per hour
  4. 1.7 points per hour
Show answerHide answer
Answer: D
For coaching = 1, add the interaction to the reference slope: 2.4−0.7=1.7 points per hour. The interaction alone is the difference between the two slopes. Its negative sign means the coached slope is smaller, not that the coached slope is negative.

Question 9 of 10

Two models use identical rows and the same random effects, but one adds a fixed predictor. What estimation method should be used for their likelihood comparison?
  1. ML for both models
  2. REML for both models
  3. ML for larger only
  4. REML for larger only
Show answerHide answer
Answer: A
Models with different fixed effects must be compared using ML likelihoods. REML removes fixed-effect information in a way that depends on the fixed-effects design, so those REML likelihoods are not comparable. Using one ML fit and one REML fit also mixes incompatible quantities.

Question 10 of 10

A linear growth model uses months since entry and predicts an average score of 18 − 0.8 × month. Time is recentered at month 5. What are the new fixed intercept and slope?
  1. 18 and −4.0
  2. 22 and −0.8
  3. 14 and −0.8
  4. 14 and −4.0
Show answerHide answer
Answer: C
The new zero is the old month 5, where the predicted score is 18−0.8(5)=14. The slope remains −0.8 points per month because shifting time does not change its unit or the straight line's rate. Multiplying the slope by 5 gives a change over time, not a new slope.
Set 2: Practice 2: Compare effects and predictions10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

The fixed part of a model is Y^=20+3Z+2X+0.5ZX, where Z is 0 or 1. What is the predicted Z = 1 minus Z = 0 difference at X = 4?
  1. 5 points
  2. 3 points
  3. 2 points
  4. 13 points
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Each volunteer rates every one of 18 sound clips. How are volunteer and clip related as grouping factors for the ratings?
  1. Clips are nested within volunteers.
  2. They are crossed grouping factors.
  3. Volunteers are nested within clips.
  4. They are one shared grouping factor.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An empty model reports a group SD of 3 and a residual SD of 6. What is its ICC?
  1. 0.33
  2. 0.50
  3. 0.25
  4. 0.20
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Two clinics both have observed means 6 points above the overall mean. One has 5 patients and one has 40; both use the same empty-model variance estimates. How do their predicted deviations compare?
  1. The 5-patient clinic is closer to zero.
  2. The 40-patient clinic is closer to zero.
  3. Both predicted deviations equal 6 points.
  4. Both predicted deviations equal zero.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A worker trains 9 hours, their team averages 7, and the overall mean is 6. What value enters a group-mean-centered training predictor?
  1. 3 hours
  2. 7 hours
  3. 2 hours
  4. −2 hours
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A random intercept-slope model has intercept variance 9, slope variance 1, and covariance −2. At centered predictor values 1 and 3, how does between-group variance compare, and is either value the minimum?
  1. It is 6 at both; both are variance minima.
  2. It is 6 at both; the minimum is at 2.
  3. It is 8 and 12; the minimum is at zero.
  4. It is 6 and 18; variance falls up to 3.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Two nested models use the same cases and random structure; the larger adds one fixed coefficient. REML output favors the larger model. Their ML deviances are 612 and 611, with 4 and 5 parameters. What comparison is valid, and what does AIC favor?
  1. Use REML; the larger model has the better AIC.
  2. Use ML; the larger model has the better AIC.
  3. Use REML; the smaller model has the better AIC.
  4. Use ML; the smaller model has the better AIC.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Adding a predictor lowers a model's deviance, but the number of rows also falls from 720 to 648. How should a likelihood comparison be prepared?
  1. Divide each deviance by its own row count.
  2. Compare the deviances and add 72 degrees of freedom.
  3. Refit both models on the same 648 complete rows.
  4. Compare AIC instead without changing either fit.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A growth model codes visits at months 0, 1, 3, and 7. At what occasion is the fixed intercept interpreted?
  1. At month 1
  2. At month 0
  3. At the average visit month
  4. At the seventh month
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Two groups have a baseline score gap of +2 for treatment minus control. Their average slopes are −1.4 and −0.8 points per week, respectively. What is the predicted treatment-minus-control gap at week 5, and when do their average lines first meet?
  1. +5 points; at about week 3.33
  2. −1 point; at about week 1.43
  3. −3 points; at about week 2.50
  4. −1 point; at about week 3.33
Show answerHide answer

Save this lesson to see this answer.

Set 3: Practice 3: Diagnose model choices10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A study has 60 clusters of 10 observations, ICC 0.10, and compares two plans for estimating a mean. Plan A doubles observations within each cluster. Plan B doubles clusters, keeping 10 per cluster. About how many more independent-observation equivalents does B supply than A?
  1. 0
  2. 60
  3. 414
  4. 218
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An empty model has group variance 20 and residual variance 80. After predictors, these are 12 and 36. How does the conditional ICC compare with the initial ICC?
  1. It falls from 0.20 to 0.15.
  2. It rises from 0.20 to 0.25.
  3. It stays at 0.20 in both fits.
  4. It falls from 0.25 to 0.20.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

In a random-intercept model, weekly activity is centered at 6 hours. The fixed slope is 1.8, and a site has predicted deviation −2. A person at 10 hours has predicted score 53.2 there. What is the fixed intercept?
  1. 48.0
  2. 44.0
  3. 46.0
  4. 58.4
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A model uses training minus team mean with coefficient 1.2, and team mean with coefficient 2.8. Team B averages 2 more training hours than Team A. For workers with the same own training hours, what difference does the model predict, and why?
  1. B is 5.6 points higher because the between effect is 2.8.
  2. B is 2.4 points higher because the within effect is 1.2.
  3. B is 3.2 points higher because the contextual effect is 1.6.
  4. B is 8.0 points higher because the two effects add to 4.0.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Two random-slope models describe the same fitted lines, but the second centers X at the first model's X = 2. The first has intercept variance 10, slope variance 0.5, and covariance −1. What are the second model's intercept variance and intercept-slope covariance?
  1. 8 and 0
  2. 10 and −1
  3. 8 and −1
  4. 16 and 0
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Two ML models on 900 identical cases have deviances 2400 and 2394 and parameter counts 5 and 7. Using ln(900) = 6.80, what do AIC and BIC prefer?
  1. Both prefer the larger model because deviance falls by 6.
  2. Both prefer the smaller model because it has fewer terms.
  3. AIC prefers the smaller model; BIC prefers the larger.
  4. AIC prefers the larger model; BIC prefers the smaller.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A residual-versus-fitted plot shows a clear U-shaped pattern. What model feature most directly needs attention?
  1. The number of outcome units
  2. The names of the grouping IDs
  3. The shape of the mean relation
  4. The use of decimal score values
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A linear growth model has average intercept 24 and slope −0.5 points per month. Person K has deviations +3 and −0.2; person L has −1 and +0.1. At month 8, who has the higher predicted score, and by how much?
  1. K by 4.0 points
  2. K by 1.6 points
  3. L by 1.6 points
  4. L by 6.4 points
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

An equally spaced monthly study uses AR(1) residual correlation 0.6. A person has observations at months 1 and 3 but misses month 2. What residual correlation does the structure assign between the two observed scores?
  1. 0.60
  2. 0.216
  3. 0.12
  4. 0.36
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A quadratic mean trajectory is Y^=28−3t+0.25t2 over weeks 0–4. What are the predicted change from week 0 to 4 and the rate at week 4?
  1. −8 points; +1 point per week
  2. −8 points; −1 point per week
  3. −12 points; −1 point per week
  4. −4 points; −2 points per week
Show answerHide answer

Save this lesson to see this answer.

Set 4: Practice 4: Transfer the reasoning10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A file contains students within classes within schools. Class numbers 1–4 repeat in every school. What identifier should represent classes across the full data set?
  1. A unique school-and-class combination
  2. The class number by itself
  3. A separate student identifier
  4. The school identifier by itself
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A team-level training policy predicts individual output. An analyst adds a complete set of team intercepts, then finds the policy coefficient is unidentifiable. Why, and what model could estimate a population policy association while allowing team clustering?
  1. Policy is constant within teams; add policy-by-team interactions to the indicator model.
  2. Policy is constant within teams; remove the overall intercept but keep every team indicator.
  3. Policy is constant within teams; use random team intercepts with policy fixed.
  4. Policy is constant within teams; center policy within each team and keep all indicators.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

What is a predicted random intercept for one hospital?
  1. Its fixed coefficient for a treatment comparison
  2. Its residual for one patient after prediction
  3. Its population variance across all hospitals
  4. Its shrunken deviation from the population intercept
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

An empty model has between-site variance 24 and within-site variance 96. A predictor model gives 18 and 72. What are the level-specific proportional variance reductions?
  1. 75% at both levels
  2. 25% at both levels
  3. 25% between and 75% within
  4. 6% between and 24% within
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A model uses individual hours X and their team mean M, with coefficients 1 and 2. It is rewritten using D=X−M and M, without changing predictions. What is the new coefficient of M, and how should it be read?
  1. 3; the between-team association
  2. 2; the between-team association
  3. 3; the contextual association
  4. 1; the contextual association
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

At X = 0, two fitted groups have predicted intercept deviations +2 and −2, and slope deviations −0.5 and +0.5. At what X do their group-specific predictions coincide, assuming common fixed effects?
  1. 2
  2. −4
  3. 4
  4. 8
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A model has fixed part Y^=32+6Z+1.4X−0.3ZX. X is hours minus 4, Z is 0 or 1, and observed hours range from 2 to 10. A report says the Z = 1 group scores lower above 8 hours. What does the model actually support over the observed range?
  1. Z = 1 becomes lower; its gap reaches −1.2 points at 10 hours.
  2. Z = 1 remains higher; its gap falls from 6.6 to 4.2 points.
  3. Z = 1 stays 6 points higher because its group coefficient is positive.
  4. Z = 1 remains higher; its gap rises from 4.2 to 6.6 points.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Starting from the same random-intercept model with identical cases and fixed effects, model U adds an uncorrelated random slope; model C adds a slope and its covariance. Each has LRT = 6 against the starting model. At 6, chi-square upper tails are 0.014 for 1 df and 0.050 for 2 df. What boundary p-values apply to U and C?
  1. U: 0.014; C: 0.050
  2. U: 0.007; C: 0.025
  3. U: 0.014; C: 0.032
  4. U: 0.007; C: 0.032
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Two site-level intervention designs each sample 2400 people: 8 sites of 300 or 48 sites of 50. Both have ICC 0.04. Which design has the larger effective sample size for a mean, by about what factor, and better informs a between-site variance?
  1. 8 sites; 4.38 times the effective size, with more precise site means.
  2. 48 sites; 6 times the effective size, matching its larger site count.
  3. 48 sites; 4.38 times the effective size, with more group realizations.
  4. 8 sites; 6 times the effective size, matching its larger groups.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A growth model has control intercept 40, control slope −0.6 per month, treatment coefficient −1, and time-by-treatment coefficient −0.4. If time is recentered at month 6, what are the new treatment coefficient and interaction?
  1. −3.4 and −0.4
  2. −1.0 and −0.4
  3. −3.4 and −1.0
  4. −2.4 and −0.4
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

64 Key Terms, each with its definition

A

Aggregation
Aggregation replaces individual observations with group summaries, such as means, changing the level of the analysis.
Aggregation of patient scores into clinic means removes information about differences within clinics.
AIC
AIC is an information criterion equal to deviance plus twice the number of estimated parameters, balancing fit and complexity.
AIC favors an added two-parameter structure when its comparable deviance reduction exceeds four.
AR(1)
An AR(1) residual structure gives equally spaced residuals correlations that are powers of a one-interval correlation as their lag increases.
With AR(1) correlation 0.4, residuals two scheduled intervals apart have correlation 0.16.

B

Between-group effect
A between-group effect describes the association of group means with outcomes when individual within-group deviations are held constant.
The between-group effect compares teams whose average training differs by one hour.
Between-group variance
The between-group variance measures how much group-specific intercepts vary around the population intercept at the reference values.
A large between-group variance means clinic intercepts differ substantially on the squared score scale.
BIC
BIC is an information criterion equal to deviance plus parameter count times log sample size, with lower values preferred.
BIC can favor fewer random coefficients even when AIC favors the larger model on the same data.
BLUP
A BLUP is a best linear unbiased prediction of a random effect, using fitted model variances to combine group and population information.
A school-intercept BLUP is a shrunken prediction, so its position in a ranking still has uncertainty.

C

Conditional effect
A conditional effect is a predictor's effect at a specified value of another predictor when their interaction is included in the model.
With time-by-treatment in the model, the treatment coefficient is a conditional effect at time zero.
Conditional ICC
The conditional ICC is the same-group residual clustering after predictors, calculated from the remaining variance components.
A conditional ICC of 0.08 describes clustering left after the fitted predictors have been included.
Contextual effect
A contextual effect is the between-group coefficient minus the within-group coefficient, describing a group-mean difference at fixed own values.
A contextual effect compares workers with the same hours who belong to teams with different mean hours.
Cross-level interaction
A cross-level interaction makes a level-1 slope depend on a level-2 predictor, linking individual and group characteristics.
A cross-level interaction asks whether the training-output slope differs by team coaching status.
Crossed factors
Crossed factors classify observations by grouping variables that do not contain one another in a single hierarchy.
Participant and photo are crossed factors when the same people rate the same collection of photos.

D

Design effect
The design effect is the factor by which a sampling design inflates an estimate's variance relative to independent sampling.
A design effect of 4 means a mean's sampling variance is four times its independent-sampling value.
Deviance
The deviance is minus twice a model's log-likelihood; smaller values indicate better unpenalized fit for comparable likelihoods.
A deviance drop of 7 is the LRT statistic when two nested fits use comparable likelihoods and cases.
Dummy coding
Dummy coding represents categorical predictors with indicator variables, giving coefficients relative to a chosen reference category.
Dummy coding therapy as 1 and waitlist as 0 makes waitlist the reference group for the time slope.

E

Ecological fallacy
The ecological fallacy is inferring an individual-level relation from an association observed between group summaries.
Claiming that every worker trains more because high-training teams perform better risks the ecological fallacy.
Effective sample size
The effective sample size expresses how many independent observations would provide comparable information for an estimate.
For a mean, a design effect of 2 reduces 600 clustered rows to an effective sample size of 300.
Empty model
An empty model contains an intercept and random group deviations but no predictors, providing a baseline variance split.
An empty model separates initial score variation between schools from variation among their students.

F

Fixed effect
A fixed effect is a population coefficient in the model, such as an average intercept, slope, or experimental-group difference.
The fixed effect of time gives the average rate of change across the modeled population of people.

G

Grand-mean centering
Grand-mean centering subtracts the overall predictor mean, making zero refer to that mean without separating within and between relations.
Grand-mean centering homework at 5 hours makes the intercept refer to a five-hour student.
Group-mean centering
Group-mean centering subtracts each observation's own group mean, producing a predictor that locates it relative to groupmates.
Group-mean centering turns 8 training hours in a team averaging 6 into a deviation of +2 hours.
Group-specific prediction
A group-specific prediction adds predicted random effects for a sampled group to the fixed-effects prediction at the chosen inputs.
A group-specific prediction includes the sampled hospital's shrunken random intercept.
Growth curve model
A growth curve model treats repeated observations as nested within people and describes average trajectories and person differences.
A growth curve model can estimate weekly change while allowing people different starting levels and slopes.

I

Independence
Independence means that knowing one error gives no information about another; shared group influences can violate this assumption.
Ordinary regression can miss a lack of independence when patients share the same clinic.
Influential group
An influential group is a cluster whose inclusion has a substantial effect on the model's estimates or substantive conclusions.
Removing one influential group may noticeably change a treatment coefficient or slope variance.
Intercept-slope covariance
The intercept-slope covariance describes how group deviations in intercept and slope vary together at the chosen predictor zero.
Negative intercept-slope covariance links higher baseline scores with more negative change slopes.
Intraclass correlation
The intraclass correlation is the same-group outcome correlation in an empty random-intercept model, equal to its between-group variance share.
An intraclass correlation of 0.15 assigns 15% of empty-model score variance to differences between groups.

L

Level-1 variable
A level-1 variable can take different values for observations inside the same group, such as students' homework hours.
Age is a level-1 variable when patients of different ages attend the same clinic.
Level-2 variable
A level-2 variable has one value for all observations in a group and can explain differences between groups.
Clinic size is a level-2 variable repeated on every patient row belonging to that clinic.
Likelihood-ratio test
A likelihood-ratio test compares nested models through their deviance difference using a reference distribution suited to the added parameters.
A likelihood-ratio test of a variance uses a boundary reference because zero is its smallest possible value.
Linear mixed model
A linear mixed model combines fixed population coefficients with random deviations to describe quantitative outcomes and grouped dependence.
A linear mixed model can relate recovery scores to exercise while allowing clinic intercepts to differ.
Long format
Long format is a data layout with one row per lower-level observation and columns identifying its group and measurement.
A growth study in long format records the person ID, week, and score together on each row.

M

Maximum likelihood
Maximum likelihood estimates parameters by maximizing the likelihood of the observed data and supports comparisons of different fixed effects.
Maximum likelihood makes two candidate fixed-effects models comparable when they use the same rows.
Missing at random
Missing at random means missingness does not depend on the unseen outcome after conditioning on the relevant observed information.
A missing-at-random analysis can account for absence related to earlier observed scores in the fitted model.
Multilevel data
Multilevel data contain observations organized by shared groups, such as students in schools or occasions within people.
Daily mood ratings form multilevel data because several ratings come from each participant.

N

Nested factors
Nested factors form a hierarchy in which every lower-level unit belongs to exactly one unit at the next higher level.
Classes are nested factors within schools when each class belongs to only one school.

P

Partial pooling
Partial pooling combines group-specific evidence with the overall distribution, borrowing information across groups for predictions.
Partial pooling moves a noisy small clinic's predicted mean closer to the population pattern.
Person-specific trajectory
A person-specific trajectory combines fixed growth coefficients with a person's random deviations to give their predicted path over time.
A person-specific trajectory can decline faster than the average when its random slope deviation is negative.
Population prediction
A population prediction uses the fixed effects and sets unknown group deviations to zero, predicting the population mean at given inputs.
For a new clinic, the population prediction uses its predictors without an estimated clinic deviation.
Pseudo-R-squared
A pseudo-R-squared here is a proportional reduction in a variance component between comparable baseline and predictor models.
Within-school pseudo-R-squared compares the two models' residual variances using the baseline as denominator.

Q

Q–Q plot
A Q–Q plot compares empirical quantiles with a reference distribution, helping assess the shape of residuals or predicted random effects.
A residual Q–Q plot with strong tail departures may question the normal residual assumption.
Quadratic trend
A quadratic trend adds squared time to a growth model, allowing the rate of change to increase or decrease linearly over time.
A quadratic trend can describe rapid early improvement followed by a slower decline in symptom scores.

R

Random effect
A random effect is a group-specific deviation from a population coefficient, represented by a distribution with an estimated variance.
A school's random effect shifts its intercept above or below the fixed population intercept.
Random-intercept model
A random-intercept model gives groups different intercepts while keeping the specified predictor slopes common across groups.
A random-intercept model draws parallel score-versus-exercise lines for different clinics.
Random-slope model
A random-slope model allows a predictor's coefficient to vary across groups through deviations around its population slope.
A random-slope model lets the exercise-score relation be steeper in some clinics than in others.
Residual covariance structure
A residual covariance structure specifies how remaining observation-level errors covary after the fixed and random effects are included.
A residual covariance structure can represent nearby visits remaining related after individual growth lines are fitted.
Residual diagnostic
A residual diagnostic examines unexplained outcome variation to detect patterns that conflict with the fitted model's assumptions.
A residual diagnostic showing a widening funnel suggests that residual spread is not constant.
Residual variance
The residual variance measures outcome variation left at the observation level after the model's fixed and random terms.
Residual variance of 49 corresponds to an unexplained individual-score SD of 7 points.
Restricted maximum likelihood
Restricted maximum likelihood adjusts variance estimation for estimating the fixed effects, reducing small-sample bias in variance components.
Restricted maximum likelihood is commonly used to estimate the final selected linear mixed model.

S

Satterthwaite approximation
The Satterthwaite approximation estimates denominator degrees of freedom for fixed-effect tests in a mixed model.
The Satterthwaite approximation can give different degrees of freedom for different fixed coefficients.
Sensitivity analysis
A sensitivity analysis examines how conclusions change under defensible alternative modeling choices or changes to the analyzed data.
Refitting without an unusual clinic is a sensitivity analysis of whether that clinic drives the findings.
Shrinkage
Shrinkage is the pull of a group's predicted deviation toward zero, with stronger pull when its own evidence is less precise.
Shrinkage is stronger for a four-person group than for a large group with the same observed mean.
Simple slope
A simple slope is a predictor's slope at a stated value of an interacting predictor, obtained from the relevant fixed terms.
The simple slope of time for treatment adds the time coefficient and the time-by-treatment coefficient.
Singular fit
A singular fit has an estimated random-effects covariance matrix with a zero-variance direction, indicating a degenerate random structure.
A singular fit may show an intercept-slope correlation of 1 even when both displayed variances are positive.
Slope variance
The slope variance measures how much group-specific slopes vary around their fixed average on the squared slope scale.
A slope variance of 0.16 gives a slope SD of 0.4 points per week in a growth model.

T

Time coding
Time coding assigns numerical time values to occasions, fixing the intercept's reference occasion and the slope's unit.
Time coding as months 0, 1, 3, and 6 preserves the unequal intervals between recorded visits.
Time-by-group interaction
A time-by-group interaction describes how the rate of outcome change differs between groups, such as treatment and control.
A negative time-by-group interaction can make treatment scores decline faster than control scores.
Time-varying predictor
A time-varying predictor can change across occasions within a person, providing information about variation around that person's trajectory.
Daily sleep is a time-varying predictor when participants report a different duration each morning.

U

Unbalanced data
Unbalanced data have unequal group sizes or unequal numbers of observed occasions, without requiring equal counts for every group.
A diary study has unbalanced data when some participants complete fewer evenings than others.
Unconditional growth model
An unconditional growth model describes change using time and random person trajectories before adding person-level explanatory predictors.
An unconditional growth model estimates how starting levels and change rates vary across people.
Unstructured covariance matrix
An unstructured covariance matrix freely estimates the variances and covariances among random coefficients, subject to a valid matrix.
For two random coefficients, an unstructured covariance matrix estimates two variances and one covariance.

V

Variance component
A variance component measures variation assigned to one source in a model, such as group intercepts or individual residuals.
The output labels school variation as one variance component and residual variation as another.

W

Within-group effect
A within-group effect describes how outcomes differ with a predictor among members of the same group, holding modeled terms constant.
A within-group effect of 2 compares workers who differ by one training hour inside the same team.
Within-person effect
A within-person effect describes how outcomes relate to occasion-level departures from the same person's usual predictor value.
A within-person effect compares a person's mood on days when they sleep more or less than usual.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started