Related Experiment Video
Updated: Feb 1, 2026

Using a Virtual Reality Walking Simulator to Investigate Pedestrian Behavior
Published on: June 9, 2020
Mixed effects approach to the analysis of the stepped wedge cluster randomised trial-Investigating the confounding
Alecia Nickless1, Merryn Voysey1,2, John Geddes3
1Nuffield Department of Primary Care Health Sciences, University of Oxford, Oxford, United Kingdom.
Background:
A stepped wedge cluster randomised trial (SWCRT) is a multicentred study which allows an intervention to be rolled out at sites in a random order. Once the intervention is initiated at a site, all participants within that site remain exposed to the intervention for the remainder of the study. The time since the start of the study ("calendar time") may affect outcome measures through underlying time trends or periodicity. The time since the intervention was introduced to a site ("exposure time") may also affect outcomes cumulatively for successful interventions, possibly in addition to a step change when the intervention began.
Methods:
Motivated by a SWCRT of self-monitoring for bipolar disorder, we conducted a simulation study to compare model formulations to analyse data from a SWCRT under 36 different scenarios in which time was related to the outcome (improvement in mood score). The aim was to find a model specification that would produce reliable estimates of intervention effects under different scenarios. Nine different formulations of a linear mixed effects model were fitted to these datasets. These models varied in the specification of calendar and exposure times.
Results:
Modelling the effects of the intervention was best accomplished by including terms for both calendar time and exposure time. Treating time as categorical (a separate parameter for each measurement time-step) achieved the best coverage probabilities and low bias, but at a cost of wider confidence intervals compared to simpler models for those scenarios which were sufficiently modelled by fewer parameters. Treating time as continuous and including a quadratic time term performed similarly well, with slightly larger variations in coverage probability, but narrower confidence intervals and in some cases lower bias. The impact of misspecifying the covariance structure was comparatively small.
Conclusions:
We recommend that unless there is a priori information to indicate the form of the relationship between time and outcomes, data from SWCRTs should be analysed with a linear mixed effects model that includes separate categorical terms for calendar time and exposure time. Prespecified sensitivity analyses should consider the different formulations of these time effects in the model, to assess their impact on estimates of intervention effects.
Related Concept Videos
Mixing Time
Steps in Outbreak Investigation
Wedges
Consider using a wedge to lift a heavy slab. Here, the wedge functions by converting the applied force into a much larger force directed almost perpendicular to the initial force. This...
Confounding in Epidemiological Studies
Statistical Software for Data Analysis and Clinical Trials
Strategies for Assessing and Addressing Confounding
Confounding can be addressed at both the design phase of a study and through analytical methods after data...

