On the importance of covariate-by-time interactions in longitudinal linear models
Abstract
Abstract Linear regression models for repeated measures have been widely used in clinical trials to compare treatment effects on continuous outcome measures. These models often include baseline covariates to improve precision and adjust for potential confounding. However, a common misapplication arises when baseline variables are included in the model without incorporating interaction terms between each covariate and time. This modeling strategy implicitly assumes that the covariates have constant effects over time but, crucially, it fails to adjust the treatment-by-time interaction, which is typically the primary parameter of interest. As a result, the inclusion of baseline covariates in this way does not truly adjust the estimated treatment effect over time. To properly account for baseline differences in repeated-measures models, interaction terms between each covariate and time should be taken into account and carefully treated. This approach ensures that baseline covariates can differentially influence the outcome at different time points, and thus appropriately adjust the estimated treatment effect. To demonstrate the practical implications of this issue, we analyzed real data from 2 randomized controlled trials (RCTs) and conducted simulation studies. The results showed that including covariates without time interaction terms led to no change in the estimated treatment effect, whereas proper inclusion of interaction terms yielded different conclusions.
Fields of Study & Subjects
Statistical Methods and Bayesian Inference
Statistical Methods in Clinical Trials
Advanced Causal Inference Techniques
Publication details
- Journal / source
- AJE Advances Research in Epidemiology
- Volume
- 2
- Issue
- 1
- Publication date
- 1 January 2026
- Language
- EN