This tutorial shows how you can use the R mediation package to do mediation analysis for binary output (logistic regression). It also explains how to use the mediation package when X (IV) is a continuous variable. Finally, it explains why there are two indirect effects, namely ACME (control) and ACME (treated).
0:00 - The difference between binary IV and continuous IV when using the Mediation R package
2:16 - R code to simulate data with continuous IV and binary DV for mediation analysis
2:53 - Using mediation R package for mediation analysis with a binary outcome (DV)
4:29 - Double-check to explain why there are ACME (control) and ACME (treated)
▬ Links ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
R code used in the tutorial:
[ Ссылка ]
Mediation Analysis for Binary Outcome (logistic regression) in R - Method 1 PROCESS macro
[ Ссылка ]
My another tutorial on Mediation Analysis for Binary Outcome (logistic regression) in SPSS:
[ Ссылка ]
R package paper:
[ Ссылка ]
Disclaimer:
The accuracy and comprehensiveness of this tutorial are not assured. It is advisable to verify independently or seek advice from professionals. The author of this tutorial bears no responsibility or liability for its accuracy and completeness.
Ещё видео!