Linear mixed models with endogenous covariates: modeling sequential treatment effects with application to a mobile health study
- PMID: 33132496
- PMCID: PMC7596885
- DOI: 10.1214/19-sts720
Linear mixed models with endogenous covariates: modeling sequential treatment effects with application to a mobile health study
Abstract
Mobile health is a rapidly developing field in which behavioral treatments are delivered to individuals via wearables or smartphones to facilitate health-related behavior change. Micro-randomized trials (MRT) are an experimental design for developing mobile health interventions. In an MRT the treatments are randomized numerous times for each individual over course of the trial. Along with assessing treatment effects, behavioral scientists aim to understand between-person heterogeneity in the treatment effect. A natural approach is the familiar linear mixed model. However, directly applying linear mixed models is problematic because potential moderators of the treatment effect are frequently endogenous-that is, may depend on prior treatment. We discuss model interpretation and biases that arise in the absence of additional assumptions when endogenous covariates are included in a linear mixed model. In particular, when there are endogenous covariates, the coefficients no longer have the customary marginal interpretation. However, these coefficients still have a conditional-on-the-random-effect interpretation. We provide an additional assumption that, if true, allows scientists to use standard software to fit linear mixed model with endogenous covariates, and person-specific predictions of effects can be provided. As an illustration, we assess the effect of activity suggestion in the HeartSteps MRT and analyze the between-person treatment effect heterogeneity.
Keywords: causal inference; endogenous covariates; linear mixed model; micro-randomized trial.
Similar articles
-
Efficacy of Contextually Tailored Suggestions for Physical Activity: A Micro-randomized Optimization Trial of HeartSteps.Ann Behav Med. 2019 May 3;53(6):573-582. doi: 10.1093/abm/kay067. Ann Behav Med. 2019. PMID: 30192907 Free PMC article. Clinical Trial.
-
ASSESSING TIME-VARYING CAUSAL EFFECT MODERATION IN THE PRESENCE OF CLUSTER-LEVEL TREATMENT EFFECT HETEROGENEITY AND INTERFERENCE.Biometrika. 2023 Sep;110(3):645-662. doi: 10.1093/biomet/asac065. Epub 2022 Nov 24. Biometrika. 2023. PMID: 37711671 Free PMC article.
-
Standardized Effect Sizes for Preventive Mobile Health Interventions in Micro-randomized Trials.Prev Sci. 2019 Jan;20(1):100-109. doi: 10.1007/s11121-017-0862-5. Prev Sci. 2019. PMID: 29318443 Free PMC article.
-
The microrandomized trial for developing digital interventions: Experimental design and data analysis considerations.Psychol Methods. 2022 Oct;27(5):874-894. doi: 10.1037/met0000283. Epub 2022 Jan 13. Psychol Methods. 2022. PMID: 35025583 Free PMC article. Review.
-
Causal evidence in health decision making: methodological approaches of causal inference and health decision science.Ger Med Sci. 2022 Dec 21;20:Doc12. doi: 10.3205/000314. eCollection 2022. Ger Med Sci. 2022. PMID: 36742460 Free PMC article. Review.
Cited by
-
Personalized Policy Learning using Longitudinal Mobile Health Data.J Am Stat Assoc. 2021;116(533):410-420. doi: 10.1080/01621459.2020.1785476. Epub 2020 Aug 11. J Am Stat Assoc. 2021. PMID: 34239215 Free PMC article.
-
Nonlinear mixed-effects modeling as a method for causal inference to predict exposures under desired within-subject dose titration schemes.CPT Pharmacometrics Syst Pharmacol. 2025 Jan;14(1):68-81. doi: 10.1002/psp4.13239. Epub 2024 Oct 24. CPT Pharmacometrics Syst Pharmacol. 2025. PMID: 39445554 Free PMC article.
-
Microrandomized Trials: Developing Just-in-Time Adaptive Interventions for Better Public Health.Am J Public Health. 2023 Jan;113(1):60-69. doi: 10.2105/AJPH.2022.307150. Epub 2022 Nov 22. Am J Public Health. 2023. PMID: 36413704 Free PMC article.
-
Handling of outcome missing data dependent on measured or unmeasured background factors in micro-randomized trial: Simulation and application study.Digit Health. 2024 Apr 30;10:20552076241249631. doi: 10.1177/20552076241249631. eCollection 2024 Jan-Dec. Digit Health. 2024. PMID: 38698826 Free PMC article.
-
Smoking Cessation Using Wearable Sensors: Protocol for a Microrandomized Trial.JMIR Res Protoc. 2021 Feb 24;10(2):e22877. doi: 10.2196/22877. JMIR Res Protoc. 2021. PMID: 33625366 Free PMC article.
References
-
- Agresti A, Booth JG, Hobert JP and Caffo B (2000). Random-Effects Modeling of Categorical Response Data. Sociological Methodology 30 27–80.
-
- Amemiya T and MaCurdy TE (1986). Instrumental-variable estimation of an error-components model. Econometrica: Journal of the Econometric Society 869–880.
-
- Arellano M and Bond S (1991). Some tests of specification for panel data: Monte Carlo evidence and an application to employment equations. The review of economic studies 58 277–297.
-
- Arellano M and Bover O (1995). Another look at the instrumental variable estimation of error-components models. Journal of econometrics 68 29–51.
-
- Bates D, Mächler M, Bolker B and Walker S (2015). Fitting Linear Mixed-Effects Models Using lme4. Journal of Statistical Software 67 1–48.
Grants and funding
LinkOut - more resources
Full Text Sources
Research Materials