Skip to content
PaperFren

Research method

Mixed-Effects Model

A mixed-effects (multilevel) model includes fixed effects for the contrasts of interest and random effects for clustering or repeated measures — the same person at 6 and 12 weeks, the same household, the same activity-trial participant's weekly wear. Longitudinal trials often pair mixed models with intention-to-treat so that incomplete follow-up still contributes. A significant time slope or intervention×time term is a modelled average trajectory, not proof that a missing control group would have been flat.

mHealth papers reach for mixed models when PHQ-9, WEMWBS, MVPA or HbA1c is measured more than once and people drop in and out. It answers 'after accounting for within-person correlation, did assignment or time shift the outcome?' Its main limitation is that the random-effects structure does not create a control arm, does not fix 73.5% versus 26.9% attrition, and does not turn a 42-person Fitbit subsample into a confirmatory trial.

Studies

8

Findings

5

7 supporting · 0 challenging · 0 qualifying citations

Open tensions

2

Currently

What we know

  1. MoodGYM's primary analysis was an ITT mixed model of WEMWBS at baseline, 6 and 12 weeks in 3,070 randomised NHS Choices users. The intervention×time interaction was highly significant: adjusted differences favoured the programme by about 2.5 points at 6 weeks and 2.9 at 12 weeks (≈Cohen d 0.34). Attrition was 73.5% in the intervention arm versus 26.9% in wait-list control — a missing-data threat the mixed model does not erase.
  2. Repeated-measures RCTs in this set move behaviour or symptoms while the stimulus is on. A 50-day Facebook walking programme increased walking by about 155 min/week (P < .001) with 87.3% retention, but between-group advantages were gone three months after the app ended. Adjunctive Kokoro-app CBT produced about a 2.5-point PHQ-9 advantage at week 9 (SMD 0.40) among 164 randomised participants, without a significant remission difference.
  3. Glucose Buddy plus weekly educator texts in 72 adults with type 1 diabetes produced a significant HbA1c decrease versus usual care to 9 months; usage frequency did not clearly mediate that change. A mixed model can separate average glycaemic change from a usage mediator and still leave open whether the app would work without the texts.
  4. Single-arm and exploratory mixed-model papers describe trajectories without a randomised comparator. Among 105 IntelliCare users enrolled at PHQ-9 ≥10 and/or GAD-7 ≥8, paired outcomes improved and 37% reached PHQ-9 <5 and 42% GAD-7 <5 by end of treatment. Among 42 cancer survivors in a Fitbit subsample, mean wear was 6.2 of 7 days weekly and intervention MVPA rose from 93.8 to 195.3 min/week — use patterns, not a Fitbit-only causal test.
  5. Not every mixed-effects paper is an mHealth outcome trial. A British Columbia COVID-19 vaccine-intention survey found 79.8% somewhat or very likely to vaccinate; respondents skewed female, white and highly educated, with mean age about 52. Household clustering can justify random effects, but intention is not uptake and the sample is not a random draw of the province.

Largest unresolved question

A mixed model with a randomised control (MoodGYM, Kokoro-app, Facebook walking, Glucose Buddy) answers a different question from a mixed model of change inside one arm (IntelliCare field trial, Fitbit wear). Significant PHQ-9/GAD-7 improvement to 37%/42% below 5, or MVPA doubling from 93.8 to 195.3 min/week, can be expectancy, concurrent care, or the surrounding activity trial. Those papers do not licence the same causal sentence as a 2.5-point randomised PHQ-9 gap.

Procedure

How it works

The main stages of the method. Specific protocols and analysis choices vary between studies.

  1. Identify clustering or repeated measures

    The same person at 6 and 12 weeks, the same household, or weekly wear from one activity-trial participant. Random effects exist to absorb that correlation; they do not by themselves make a cluster-randomised trial.

  2. Write fixed effects for the contrast

    Assignment, time, and often an intervention×time term are the scientific contrast. A significant slope is a modelled average trajectory, not proof that a missing control group would have been flat.

  3. Fit random effects for the clustering

    Intercepts or slopes vary by person, household, or other cluster. Longitudinal trials often pair this with intention-to-treat so incomplete follow-up still contributes.

  4. Estimate the trajectory

    The output is a change in PHQ-9, WEMWBS, MVPA, or HbA1c after accounting for within-person correlation. A one-arm field trial and a randomised mixed/ITT contrast are not the same question.

  5. Do not treat the model as a missing control arm

    A mixed model answers whether assignment or time shifted the outcome after within-person correlation. It does not create a control, does not fix unequal attrition, and does not turn a small wear subsample into a confirmatory trial.

Common misconceptions

  • An ITT mixed model solves large, unequal dropout.

    It uses the incomplete records it has. MoodGYM still compared arms with 73.5% versus 26.9% attrition. If people who leave differ in well-being, the intervention×time term can be biased even though the analysis is labelled ITT.

  • If PHQ-9 falls significantly over 8 weeks in a mixed model, the app caused the improvement.

    IntelliCare's field trial had no control group, so expectancy and concurrent care remain explanations for 37% reaching PHQ-9 <5. Kokoro-app's 2.5-point gap is the randomised mixed/ITT contrast in this set.

  • Random effects mean the study was a cluster-randomised trial.

    Random effects can capture repeated measures in an individually randomised app trial, wear days in a 42-person subsample, or household clustering in a vaccine-intention survey (79.8% likely). Cluster randomisation is a design choice, not a synonym for mixed models.

Related