Regression-Based Causal Inference for Person-Specific Effects in Within-Subject Randomization Designs
This paper proposes a regression-based causal inference framework using ordinary least squares with probability-weighted treatment indicators to estimate person-specific immediate and lag-1 effects in within-subject randomized designs, demonstrating its robustness and applicability through simulation studies and empirical examples.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the world of psychological and behavioral research, scientists have long relied on a standard method to prove that a treatment works: the randomized controlled trial. In this classic setup, a large group of people is split into separate teams. One team receives a new intervention, like a specific therapy or a health app, while another team receives a different treatment or nothing at all. By comparing the average results of these two groups, researchers can determine if the treatment caused a change. However, this approach has a significant blind spot. It tells us what works on average for a crowd, but it often fails to reveal what works for a specific individual. A medication might help one person recover quickly while having no effect on another, yet the standard trial would simply report the average, potentially masking these vital differences. Furthermore, recruiting enough people for these large studies is often difficult, and many trials struggle to find enough participants to reach a reliable conclusion.
To solve this, researchers have turned to a different kind of experiment where the same person serves as their own control. Instead of comparing different people, scientists observe a single individual repeatedly over time, randomly switching the conditions they experience. This is known as a within-subject randomization design. Imagine a person with a chronic condition who tries a new therapy for a few days, then switches to a different one, then back again, with the order decided by chance. This allows researchers to see how that specific person reacts to each treatment in real-time. The challenge, however, has been figuring out how to analyze this complex stream of data. Because the treatments happen in a sequence, the result of one day might be influenced by the treatment from the day before, or by a slow trend in the person's behavior over time. Traditional statistical tools often struggle to untangle these immediate effects from these lingering influences, leaving researchers with descriptions of what happened but without a clear, causal proof of why it happened.
A team of researchers has now developed a new way to answer these questions using a familiar tool: regression analysis, a common statistical method used to find relationships between variables. Their work, published as a research article, creates a bridge between the rigorous logic of experimental design and the practical tools that psychologists use every day. The authors, Chendong Li and Wen Luo, propose a framework that treats the random switching of treatments not just as a schedule, but as a known mathematical pattern that can be used to isolate cause and effect. By carefully adjusting the data to account for the specific probabilities of when a treatment was assigned, they can use a standard regression model to calculate two distinct types of effects. The first is the immediate effect: how much a treatment changes a person's behavior right after it is given. The second is the lagged effect: how much a treatment from the previous day continues to influence behavior today.
The researchers tested their new method through two large-scale computer simulations, which act like virtual laboratories where they can generate thousands of fake datasets to see how their formulas perform under different conditions. In the first simulation, they modeled a scenario with three different treatment options, a common setup in modern health studies. They found that their method could accurately recover the true effects of each treatment with very little error, even when the data contained complex trends. The accuracy improved as the number of observation points increased, suggesting the method is robust for studies with longer timelines. In the second simulation, they tackled a more difficult scenario where the randomization was restricted. In many real-world studies, researchers cannot allow a person to receive the same treatment for too many days in a row because it might become boring or impractical. This restriction changes the math of the experiment. The simulations showed that without a specific adjustment for these rules, the method would produce biased results, particularly for the lagged effects. However, when the researchers added a probability adjustment to their model to account for these restrictions, the bias disappeared, and the estimates became accurate again.
To prove the method works in the real world, the team applied it to two existing datasets. The first came from a study on physical activity called HeartSteps, where a participant received random suggestions to walk or avoid sitting. Using their new framework, the researchers calculated that a walking suggestion led to an immediate increase of about 129 steps in the following 30 minutes, while an anti-sedentary suggestion led to an increase of about 143 steps. Neither of these increases was statistically significant on its own, meaning the data was not strong enough to rule out chance, but the method successfully produced clear, interpretable numbers. The second example came from a special education study involving a child with autism spectrum disorder. The child alternated between a cognitive exercise and a control activity. The analysis revealed that the cognitive exercise immediately reduced problem behaviors by nearly 19 percentage points compared to the control. The method also checked for lingering effects from the previous session but found no clear evidence that the prior treatment influenced the current day's behavior.
The study highlights that while the method is powerful, it does have limits, particularly when the data series is very short. In the simulations involving restricted randomization, the researchers found that with fewer than 30 observation points, the confidence intervals—the range of values where the true effect likely lies—were sometimes too narrow, leading to a higher risk of false alarms. This suggests that while the method is a major step forward for analyzing individual-level data, researchers must be cautious when drawing strong conclusions from very brief studies. The authors emphasize that their approach does not assume the data follows a perfect linear pattern; instead, it uses the known rules of the randomization to extract the causal signal from the noise. By connecting the design of the experiment directly to the regression analysis, they have provided a way for scientists to move beyond simple averages and understand the unique, person-specific effects of treatments. This framework offers a path forward for personalized medicine and behavioral science, allowing researchers to ask not just "does this work?" but "does this work for this person, right now, and for how long?"
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.