Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

# Re: st: FW: Mediation with endogenous mediator and endogenous independent variables

 From John Antonakis <[email protected]> To [email protected] Subject Re: st: FW: Mediation with endogenous mediator and endogenous independent variables Date Wed, 19 Jun 2013 11:06:45 +0200

```Hi:

"I need to know the impact of the independent variables on the mediator"

You get that from:

"m = z1 z2 z3 c (the mediator on the instruments and controls)"

```
Or did you mean the impact of the instruments on the mediator, in which case you do the following as a postestimation command after ivregress:
```
estat firststage

.....to see whether your instruments are "strong".

Best,
John.

P.S. I guess your code is (you left out "2sls" in your message):

ivregress 2sls y c (x1 x2 m = z1 z2 z3), first r

__________________________________________

John Antonakis
Professor of Organizational Behavior
Director, Ph.D. Program in Management

University of Lausanne
Internef #618
CH-1015 Lausanne-Dorigny
Switzerland
Tel ++41 (0)21 692-3438
Fax ++41 (0)21 692-3305
http://www.hec.unil.ch/people/jantonakis

Associate Editor
__________________________________________

On 19.06.2013 10:12, A.M. Aranda Gutierrez wrote:
```
```Dear J,

ivregress dep.var exogenous_variables (endogenous_indep._var1 endogenous_indep_var2 mediator = instruments), first r
so,
ivregress y c (x1 x2 m = z1 z2 z3), first r

Thus, the first stage output shows three regressions:

x1 = z1 z2 z3 c (the endogenous_indep._var1 on the instruments and controls)
x2 = z1 z2 z3 c (the endogenous_indep._var2 on the instruments and controls)
m = z1 z2 z3 c (the mediator on the instruments and controls)

Now, I need to know the impact of the independent variables on the mediator in order to be able to test the second condition for mediation. However, with the current specification this is not possible. Therefore, I'd like to know if there is a way in which I can instrument both the independent variables and the mediators and still be able to calculate the impact of the former on the latter. I hope it is clear now, please let me know if you have any other questions. I really appreciate your help!

Best,

Ana

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/
```
```
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/
```