Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • multi-level mediation with two mediators

    Dear all,

    I am working with Stata12 and I would like to conduct mediation analysis with two mediators on multi-level with boostrapping.

    I used "ml_mediation" syntax to conduct multi-level mediation analysis with one mediator as following:
    ml_mediation, dv(dv_var) mv(mv_var) iv(iv_var) l2id(sid) cv(ctrl_var)

    quietly bootstrap r(ind_eff) r(dir_eff) r(tot_eff), ///
    strata(sid) reps(5000): ml_mediation, dv(dv_var) iv(iv_var) ///
    mv(mv_var) cv(ctrl_var) l2id(sid)

    in which, "dv" indicates dependent variable, "mv" indicates mediator, "iv" indicates independent variable, "cv" indicates control variable, and "l2id" indicates subject ID. The bootstrapping helps to estimate the direct effect from IV to DV and indirect effect from IV -> MV -> DV.

    For the mediation analysis with two mediators, there will be two indirect effects go from IV -> MV1 -> DV and IV -> MV2 -> DV respectively (the direct effect still goes from IV to DV). I wonder anyone can help me with this problem and sorry for multiple posts by mistake...

    Thank you all in advance.

    ​Aiqing Ling
Working...
X