Bayesian (Non)Linear Random Effects Mediation Models: Evaluating the Impact of Omitting Confounders

Research output: Contribution to journalArticlepeer-review

Abstract

Often in educational and psychological studies, researchers are interested in understanding the mediation mechanism of longitudinal (repeated measures) variables. Almost all longitudinal mediation models in the literature stem from structural equation modeling framework and hence, cannot directly estimate intrinsically nonlinear functions (e.g., exponential, linear–linear piecewise function with an unknown changepoint) without using reparameterizations. The current study aims to develop a framework of Bayesian (non)linear random effects mediation models, B(N)REMM, to directly model intrinsically linear and nonlinear functions. Specifically, we developed two distinct longitudinal mediation models where all variables under consideration were longitudinal and followed either a linear trend (L-BREMM) or a segmented trend captured by linear–linear piecewise functions with unknown random changepoints (P-BREMM). Additionally, no research has assessed the impact of omitting confounder(s) when modeling mediation effects for intrinsically nonlinear functions. We used an empirical data example from the Early Childhood Longitudinal Study—Kindergarten Cohort to contrast the fit of two models where one included the confounder and the other omitted it. The empirical example illustrated the need to study the impacts of model misspecification with respect to omitting confounder(s). We further explored this issue and its effect on model estimation for both L-BREMM and P-BREMM via Monte Carlo simulation studies under a variety of data conditions. The simulation study results showed that omitting confounder(s) negatively impact parameter recovery for both L-BREMM and P-BREMM but only had an impact on model convergence of P-BREMM. We provide R scripts to estimate both L-BREMM and P-BREMM to aid the dissemination of these models. Translational Abstract Often in educational and psychological studies, researchers are interested in understanding the mediation mechanism of longitudinal (repeated measures) variables. However, longitudinal mediation models stemming from structural equation modeling literature cannot directly estimate intrinsically nonlinear functions (e.g., exponential, linear–linear piecewise function with an unknown changepoint) without using reparameterizations. This brings challenges for practitioners who are not familiar with the reparameterization approach. The current study aims to develop a Bayesian framework of (non)linear random effects mediation models, B(N)REMM, to directly estimate intrinsically linear and nonlinear functions. Specifically, we developed two distinct longitudinal mediation models, first where all longitudinal variables followed a linear trend (L-BREMM), and the second where they followed a segmented trend captured by linear–linear piecewise functions with unknown random changepoints (P-BREMM). Additionally, we explored the effect of omitting confounder(s) on model estimation for both L-BREMM and P-BREMM via Monte Carlo simulation studies. The simulation studies were motivated by an empirical data analysis of the Early Childhood Longitudinal Study—Kindergarten Cohort where we illustrated the effect of omitting confounder(s) by contrasting the fit of two models where one included the confounder and the other omitted it. We provide R scripts to aid practitioners in using both L-BREMM and P-BREMM.

Original languageEnglish (US)
JournalPsychological Methods
DOIs
StateAccepted/In press - 2024

Bibliographical note

Publisher Copyright:
© 2024 American Psychological Association

Keywords

  • confounders
  • intrinsically nonlinear function
  • longitudinal mediation
  • model misspecification
  • random effects models

Fingerprint

Dive into the research topics of 'Bayesian (Non)Linear Random Effects Mediation Models: Evaluating the Impact of Omitting Confounders'. Together they form a unique fingerprint.

Cite this