Hello,
I am trying to run a causal mediation analysis with an endogenous, dichotomous mediator using the user-written Stata module -ivreg2- (Baum, Schaffer, and Stillman 2010). I chose this module because of the endogeneity of the mediator (hence the need for 2sls), and I am using Stata 11. My dependent variable, treatment variable, and mediator variable are all dichotomous.
My equation is as follows:
ivreg2 y x1 x2 x3...x10 (m=z1 z2...z6), robust first
Where,
y = dependent variable
x1 = treatment variable (included instrument)
x2...x10 = control variables for outcome equation (included instruments)
m = mediator variable (endogenous mediator being instrumented)
z1...z6 = independent variables in mediator equation (excluded instruments)
I chose to report robust standard errors due to my outcome being dichotomous (and the associated violation of i.i.d.).
I am a bit confused by the output, particularly how to assess or test whether or not my mediator variable (m) mediates the effect of my treatment variable (x1) on the outcome. How do I test for and isolate the mediated effects of m on the relationship between x1 and y?
Also, it doesn't appear that bootstrapping is an available option with -ivreg2-. Is that correct? Since I'm working with non-linear relationships, that would seem to be more useful and appropriate than simply reporting robust standard errors.
Thanks in advance for any insight that you may have!
--David Quinn
References
Baum, C.F., Schaffer, M.E., Stillman, S. 2010. "ivreg2: Stata module for extended instrumental variables/2SLS, GMM and AC/HAC, LIML and k-class regression." http://ideas.repec.org/c/boc
/bocode/s425401.html
I am trying to run a causal mediation analysis with an endogenous, dichotomous mediator using the user-written Stata module -ivreg2- (Baum, Schaffer, and Stillman 2010). I chose this module because of the endogeneity of the mediator (hence the need for 2sls), and I am using Stata 11. My dependent variable, treatment variable, and mediator variable are all dichotomous.
My equation is as follows:
ivreg2 y x1 x2 x3...x10 (m=z1 z2...z6), robust first
Where,
y = dependent variable
x1 = treatment variable (included instrument)
x2...x10 = control variables for outcome equation (included instruments)
m = mediator variable (endogenous mediator being instrumented)
z1...z6 = independent variables in mediator equation (excluded instruments)
I chose to report robust standard errors due to my outcome being dichotomous (and the associated violation of i.i.d.).
I am a bit confused by the output, particularly how to assess or test whether or not my mediator variable (m) mediates the effect of my treatment variable (x1) on the outcome. How do I test for and isolate the mediated effects of m on the relationship between x1 and y?
Also, it doesn't appear that bootstrapping is an available option with -ivreg2-. Is that correct? Since I'm working with non-linear relationships, that would seem to be more useful and appropriate than simply reporting robust standard errors.
Thanks in advance for any insight that you may have!
--David Quinn
References
Baum, C.F., Schaffer, M.E., Stillman, S. 2010. "ivreg2: Stata module for extended instrumental variables/2SLS, GMM and AC/HAC, LIML and k-class regression." http://ideas.repec.org/c/boc
/bocode/s425401.html
Comment