Sichuan jingshen weisheng (Oct 2022)
Causal mediation effect analysis based on different variable stratification
Abstract
The purpose of this paper was to introduce the setting method of the three types of variable levels in the causal mediation effect analysis and the implementing calculation method under the condition of stratification by using SAS. The setting of the three types of variable levels referred to the setting of the levels of treatment variable, the mediator variable and the covariate. Besides, a specific level combination could also be set for two variables. Through an example, with the help of the enveluate statement in proc causualmed procedure, this paper used an example to conduct the causal mediation effect based on different variable stratification, and gave the output results and explanations.
Keywords