Hi Friends,
I have a simple question. How should I handle writing lags when using -xtivreg-? To give a sample dataset, I would write something like this:
I want to see the effect of 5 year lags. That means in the first stage equation, the instruments and exogenous variables are lagged five years and then, in the second stage, the endogenous variable is also lagged five years. However, because of the (convenient) way Stata allows you to write this all out at once, I don't know how to tell it to not lag the endogenous outcome in the first step but lag in the second. In the example, I provided, I just wrote l5 for everyhing but that means the first stage is predicting l5.wks which is awkward. I hope that makes sense.
The simplest workaround is to do it the "old fashioned way" where I save the residuals in the first step and plug them in in a second equation which allows me to control the lags in the way I want. I've been doing that until now but want take advantage of the many other features xtivreg uses (or, in my real case, xtivreg2), e.g. weak identification test etc.
Thanks
I have a simple question. How should I handle writing lags when using -xtivreg-? To give a sample dataset, I would write something like this:
Code:
webuse psidextract xtivreg lwage l5.exp (l5.wks=l5.ms), fe
The simplest workaround is to do it the "old fashioned way" where I save the residuals in the first step and plug them in in a second equation which allows me to control the lags in the way I want. I've been doing that until now but want take advantage of the many other features xtivreg uses (or, in my real case, xtivreg2), e.g. weak identification test etc.
Thanks
Comment