Opens in a new tab
Home/Example Projects/Linear Mixed Model for a Longitudinal Classroom Study

ILLUSTRATIVE EXAMPLE

Linear Mixed Model for a
Longitudinal Classroom Study

Growth in reading fluency across three school-year waves, modeled with random effects for students and classrooms and a group-by-time interaction, reported to APA 7.

Education & Social SciencesEducationIBM SPSSLinear mixed model

This example does not describe a real client or project. Every engagement is confidential, during the project and after it ends.

1

RESEARCH QUESTION

What the Study Set Out to Test

This linear mixed model example follows an education research team comparing a new reading-support program with standard instruction. Reading fluency was assessed in fall, winter and spring, and the team wants to know whether fluency grew differently in the two groups across the school year.

The question is about a difference in growth, so the group-by-time interaction is the primary test, specified before spring scores were examined. A gain in one group and no gain in the other would not by itself show that growth differed. Classrooms were not randomized to the program, so the result is framed as a difference in growth, not a program effect.

2

STUDY DESIGN AND DATA

Repeated Measures Nested in Classrooms

Around 400 students in 20 classrooms, 10 per program group, each assessed at three waves. The dataset holds a fluency score per wave, program group, classroom, and baseline variables such as grade and prior reading level. Some students left before spring, so not every student has all three scores.

  • Design: three waves of repeated measures, students nested in classrooms
  • Outcome: continuous reading fluency score at each wave
  • Software requested: IBM SPSS (MIXED), with syntax and output files
3

METHOD AND ASSUMPTIONS

Why a Mixed Model, and What Must Hold

Scores from the same student are correlated, and students in the same classroom share a teacher and setting, so a repeated measures ANOVA on complete cases would ignore the clustering and drop students who left early. The mixed model keeps every available score, includes time, program group and their interaction as fixed effects, and uses random effects for students and classrooms. Because program was allocated by classroom, the group comparison rests on 20 clusters, and the plan treats that number as modest when judging precision.

The plan names a random slope for time as the preferred structure. When it is fitted in SPSS MIXED, the slope variance at the classroom level is close to zero and the output warns that a covariance parameter is redundant, which signals that the data cannot support that term. Following the plan's stated fallback, the classroom-level random slope is dropped, residual covariance structures are compared by AIC under REML, and the interaction is tested with ML. Missing spring scores are judged plausibly missing at random given earlier scores, and the team is told what that judgment assumes.

4

OUTPUT AND INTERPRETATION

What the Results Showed

The output has the group-by-time interaction with its 95% confidence interval, the estimated means at each wave by group with confidence intervals, and the variance components with the intraclass correlation for classrooms. A profile plot shows the two growth patterns, and the interval, not the p-value alone, carries the message about the size and precision of the difference in growth.

A sensitivity analysis reports the complete-case count and refits the model on students with all three waves, to show whether the conclusion depends on how early leavers are handled. The write-up states what the estimates support for a design in which classrooms were not randomized, and what the simplification of the random effects does and does not change.

5

REPORTING

What the Researcher Received

A written report formatted to APA 7, with statistical wording for the methods, matched to the output, for the team to check and incorporate, including the explanation of the simplified random-effects structure. The research question, substantive interpretation and conclusions remain with the research team.

Delivered package

Interpreted written report (APA 7), with tables and figures
Interaction test with 95% confidence interval and estimated means
Variance components, intraclass correlation and covariance structure comparison
Profile plot of growth by program group
SPSS syntax and output for reproducibility

NEXT STEP

Have a Similar
Research Need?

Share your project and receive a personalized assessment from a statistically trained Research Coordinator, with a fixed fee, usually the same day.

No Commitment Required

Strictly Confidential

Fixed Project Fee

In-House PhD-Level Statisticians

Same-Day Response

Serving Researchers Since 2014