2022/06/09 by Amanda Kay Montoya, Amanda K. Montoya · 68 citations
Computer Science · Mathematics · Psychology · #Advanced Causal Inference Techniques #Advanced Statistical Modeling Techniques #Artificial intelligence #Behavioral and Psychological Studies #Causal inference #Causality (physics) #Computer science #Econometrics #External validity #Inference #Mathematics #Mediation #Psychology #Sample size determination #Statistical inference #Statistical power #Statistics #Subject (documents)
paper · open access · doi:10.1080/00273171.2022.2077287
published in Multivariate Behavioral Research 58(3), 616-636 (Taylor & Francis)
openalex publication_date 2022/06/09 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/31
Researchers with mediation hypotheses must consider which design to use: within-subject or between-subject? In this paper, I argue that three factors should influence design choice: validity, causality, and statistical power. Threats to validity include carry-over effects, participant awareness, measurement, and more. Causality is a core element of mediation, and the assumptions required for causal inference differ between the two designs. Between-subject designs require more restrictive no-confounder assumptions, but within-subject designs require the assumption of no carry-over effects. Statistical power should be higher in within-subject designs, but the degree and conditions of this advantage are unknown for mediation analysis. A Monte Carlo simulation compares designs under a broad range of sample sizes, effect sizes, and correlations among repeated measurements. The results show within-subject designs require about half the sample size of between-subject designs to detect indirect effects of the same size, but this difference can vary with population parameters. I provide an empirical example and R script for conducting power analysis for within-subject mediation analysis. Researchers interested in conducting mediation analysis should not select within-subject designs merely because of higher power, but they should also consider validity and causality in their decision, both of which can favor between-subject designs.