Dear Listserv—
I’m trying to test the suitability of an instrument with a random effects (or mixed effects) model.
I have one instrumental variable (iv) and one endogenous predictor variable (ngo). I’m using Stata 13; my N is about 290; and my cases (country-years) are clustered by country.
My Questions:
(1) Here is the code I’ve been using: xtivreg hojust year relz l.gdpc1000 (l.ngo=l.iv), re. I want to test whether the predictor variable “ngo” is endogenous, as theory would lead me to expect. Is there any way to do this? (I tried the estat endogenous postestimation command, but it apparently only works after ivregress, not after xtivreg.)
(2) Can you suggest any tests in Stata of whether I have a weak instrument?
(3) Is there any way to use an instrumental variable with the mixed command? My main models actually use the mixed command (not xtreg) and include three random effects. (Here is my code: mixed hojust year relz l.gdpc1000 || country: year, covariance(unstructured).) The xtivreg command basically works but isn’t ideal, because it only allows me to include a single random effect for country.
Thanks very much!
Louisa
I’m trying to test the suitability of an instrument with a random effects (or mixed effects) model.
I have one instrumental variable (iv) and one endogenous predictor variable (ngo). I’m using Stata 13; my N is about 290; and my cases (country-years) are clustered by country.
My Questions:
(1) Here is the code I’ve been using: xtivreg hojust year relz l.gdpc1000 (l.ngo=l.iv), re. I want to test whether the predictor variable “ngo” is endogenous, as theory would lead me to expect. Is there any way to do this? (I tried the estat endogenous postestimation command, but it apparently only works after ivregress, not after xtivreg.)
(2) Can you suggest any tests in Stata of whether I have a weak instrument?
(3) Is there any way to use an instrumental variable with the mixed command? My main models actually use the mixed command (not xtreg) and include three random effects. (Here is my code: mixed hojust year relz l.gdpc1000 || country: year, covariance(unstructured).) The xtivreg command basically works but isn’t ideal, because it only allows me to include a single random effect for country.
Thanks very much!
Louisa
Comment