Abstract
Mediation analysis has been widely applied to explain why and assess the extent to which an exposure or treatment has an impact on the outcome in health psychology studies. Identifying a mediator or assessing the impact of a mediator has been the focus of many scientific investigations. This tutorial aims to introduce causal mediation analysis with binary exposure, mediator, and outcome variables, with a focus on the resampling and weighting methods, under the potential outcomes framework for estimating natural direct and indirect effects. We emphasize the importance of the temporal order of the study variables and the elimination of confounding. We define the causal effects in a hypothesized causal mediation chain in the context of one exposure, one mediator, and one outcome variable, all of which are binary variables. Two commonly used and actively maintained R packages, mediation and medflex, were used to analyze a motivating example. R code examples for implementing these methods are provided.
Original language | English (US) |
---|---|
Pages (from-to) | 778-787 |
Number of pages | 10 |
Journal | Health Psychology |
Volume | 42 |
Issue number | 11 |
DOIs | |
State | Published - Jul 6 2023 |
Keywords
- causal
- harm perception
- interaction
- mediation analysis
- natural direct and indirect effects
ASJC Scopus subject areas
- Applied Psychology
- Psychiatry and Mental health