Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Re: st: Analyzing multiple mediators

From   "Ariel Linden, DrPH" <>
To   <>
Subject   re: Re: st: Analyzing multiple mediators
Date   Mon, 26 Nov 2012 10:53:10 -0500

I agree with Steve that sensitivity is important to apply to mediation
analysis. The only problem with -medeff- (the user written program that
Steve notes below that comes in a bigger package called -mediation-) is that
it does not handle multiple mediators. The R version of the program can
handle multiple mediators and perform sensitivity analysis, so if you want
to go this route, I suggest you read the paper by Kosuke Imai and Teppei

-khb- , which I noted earlier (findit khb), handles multiple mediators but
does not perform sensitivity analysis.


Date: Sun, 25 Nov 2012 10:28:05 -0600
From: Steve Samuels <>
Subject: Re: st: Analyzing multiple mediators


To answer your original question:  The error arose because you applied
the -if- expression only to -sureg- , not to the -bootmm- command.
- -jackknife-, called by the "bca" option, assumed that every observation
was in the estimation sample.

The fix:
  1. After the -syntax- statement in your program,
     add the statement:  "marksample touse".
  2. In place of "if NMV==1", substitute "if `touse'".
  3. In the -bootstrap- statement, after "bootmm", add "if NMV==1".

I agree with Ariel that -khb- offers a more comprehensive approach.
The -mediation- package by Hicks and Tingley (at SSC) is also worth
considering, because it does a sensitivity analysis of an important

Hicks, R., and D. Tingley. 2011. Causal mediation analysis. Stata
Journal 11, no. 4: 605. A preprint is as

(You can often find preprints with Google Scholar).


*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index