Dear all,
in a mediation model, one can decompose the total effect of the treatment in a direct and indirect effect. The share mediated is then the indirect effect divided by the total effect. For continuous outcome variables, this is rather simple to do, as two nested OLS model suffice. However, when the dependent variable is binary, this is more complex due to various statistical issues. To accomplish this goal in Stata, the following options come to my mind:
I wonder if I have forgotten popular techniques or ados used for this goal. If anyone has further ideas please let me know!
in a mediation model, one can decompose the total effect of the treatment in a direct and indirect effect. The share mediated is then the indirect effect divided by the total effect. For continuous outcome variables, this is rather simple to do, as two nested OLS model suffice. However, when the dependent variable is binary, this is more complex due to various statistical issues. To accomplish this goal in Stata, the following options come to my mind:
- Still using OLS, which then becomes a linear probability model (LPM)
- Using nested binary logistic regression models (likely biased as logits cannot be treated as OLS coefficients)
- Using nested binary logistic regression models with average marginal effects (AMEs)
- Using KHB*
- Using marginal odds ratios (e.g. with lnmor*)
- Using medeff*
- Using the rather new mediate command of Stata (however, this does not work for all setups, as the treatment var cannot be continuous)
I wonder if I have forgotten popular techniques or ados used for this goal. If anyone has further ideas please let me know!
Comment