Page 1 of 3

Holtz-Eakin-Newey-Rosen example

Posted: Sat Feb 27, 2010 5:31 pm
by TomDoan
This is an example of the techniques described in Holtz-Eakin, Newey and Rosen(1988), "Estimating Vector Autoregressions with Panel Data," Econometrica, vol. 56, no 6, pp 1371-95. This is an example provided by the authors, but isn't the same data set as used in the published paper. It estimates a bivariate VAR with panel data on local government employment data (full- and part-time workforce per capita) with wage rates for each type of employee treated as pre-determined variables. This allows for individual effects, that is, the intercepts are allowed to vary across individuals, though the lag coefficients and the covariance matrices are assumed to be fixed. It includes fixed time effects in the form of dummies.

It's well known that the straightforward LSDV estimation (what you would get with PREG(METHOD=FIXED)) is subject to bias that is a function of the T dimension only, which is here quite small. To avoid this problem, the authors apply what's now known as the Arellano-Bond estimator; using a large number of instrumental variables in a regression on first differences.

This does single equation estimates using 2SLS, single equation GMM with allowing for general serial correlation, 3SLS and systems GMM allowing for general serial correlation, all with a reduced set of Arellano-Bond instruments. This is a data set with a fairly large N dimension (161) and small T (six usable data points per individual). If you have a data set with a much smaller N, the GMM estimators may not be feasible since the number of orthogonality conditions may exceed N.

This requires a revised version of the @ABLAGS procedure.

labor.xls
Data set
(639.32 KiB) Downloaded 1874 times

Re: Holtz-Eakin-Newey-Rosen example

Posted: Sat May 22, 2010 5:20 am
by luxu1983
dear
the author use three steps to get the result

Re: Holtz-Eakin-Newey-Rosen example

Posted: Sat May 22, 2010 10:01 am
by TomDoan
That's what the 3SLS is at the end. You don't have to do the steps yourself.

Re: Holtz-Eakin-Newey-Rosen example

Posted: Sat May 22, 2010 11:31 am
by luxu1983
TomDoan wrote:That's what the 3SLS is at the end. You don't have to do the steps yourself.
in your meaning
3sls at the end is to get the gls estimator
am i right?

is it necessary to add the option "update=continuous,zudep"?

Re: Holtz-Eakin-Newey-Rosen example

Posted: Sat May 22, 2010 2:45 pm
by TomDoan
luxu1983 wrote:
TomDoan wrote:That's what the 3SLS is at the end. You don't have to do the steps yourself.
in your meaning
3sls at the end is to get the gls estimator
am i right?
Yes. The SUR at the end is the GLS estimator.
luxu1983 wrote: is it necessary to add the option "update=continuous,zudep"?
They aren't "necessary". You get a consistent estimator without them. It is, however, what they recommend.

Re: Holtz-Eakin-Newey-Rosen example

Posted: Sat May 22, 2010 9:55 pm
by luxu1983
can i get single equation GLS estimator rather than using SUR

Re: Holtz-Eakin-Newey-Rosen example

Posted: Sun May 23, 2010 10:13 am
by TomDoan
The single equation GMM (not GLS) estimators are done with:

Code: Select all

linreg(inst,optimal) dpart
# constant pdummy dfwage{0} dpwage{0} dfull{1} dpart{1} dfwage{1} dpwage{1}
linreg(inst,optimal) dfull
# constant pdummy dfwage{0} dpwage{0} dfull{1} dpart{1} dfwage{1} dpwage{1}

Re: Holtz-Eakin-Newey-Rosen example

Posted: Thu Jul 01, 2010 11:40 am
by cv003h
Hi Tom. Thanks so much for posting an example from Holtz-Eakin et al. I am relatively new to RATS, and am wondering how I would alter your code to accommodate an unbalanced panel with missing observations? Think 10,000 firms, 30 years of annual obs, and differing start/end dates per firm with not always every year in between.
Thanks!
Chris

Re: Holtz-Eakin-Newey-Rosen example

Posted: Thu Jul 01, 2010 2:34 pm
by TomDoan
There's nothing about the way that this works that requires a balanced sample. You just have to get the data into RATS in a balanced form with missing values padding the short time series. The missing values within an individual record are more of a problem. First off, you're estimating a VAR, so you would lose (with one lag) two observations for each of those, since you are missing the lag as well. Then, the first difference operator to get rid of the individual effects costs another one. The instruments for an individual like that are going to be a patchwork as well. It might make more sense to filter out the individuals that have embedded missing values.

Re: Holtz-Eakin-Newey-Rosen example

Posted: Sat Jul 03, 2010 1:52 am
by luxu1983
dear
How to set instrumental variable, so that each equation is just identified?

Re: Holtz-Eakin-Newey-Rosen example

Posted: Sat Jul 03, 2010 7:15 am
by TomDoan
luxu1983 wrote:dear
How to set instrumental variable, so that each equation is just identified?
That's the Anderson-Hsiao estimator which has very poor properties. The whole point of the Arellano-Bond instruments is that the lagged values are all fairly weak instruments, so you need many of them to get good results.

Re: Holtz-Eakin-Newey-Rosen example

Posted: Wed Jul 21, 2010 6:30 am
by cv003h
TomDoan wrote:There's nothing about the way that this works that requires a balanced sample.
I guess I was thrown by the line "calendar(panelobs=8) 1973". Does this imply that every "firm" begins in 1973 and runs for exactly 8 years?

Re: Holtz-Eakin-Newey-Rosen example

Posted: Wed Jul 21, 2010 7:49 am
by TomDoan
cv003h wrote:
TomDoan wrote:There's nothing about the way that this works that requires a balanced sample.
I guess I was thrown by the line "calendar(panelobs=8) 1973". Does this imply that every "firm" begins in 1973 and runs for exactly 8 years?
In the RATS panel data structure, each individual has the same size block of entries. However, they don't all have to have data at the same time periods.

Re: Holtz-Eakin-Newey-Rosen example

Posted: Mon Aug 23, 2010 11:35 am
by cv003h
TomDoan wrote: This does single equation estimates using 2SLS, 2SLS with heteroscedasticity robust standard errors and joint estimation using 3SLS, all with the Arellano-Bond sets of instruments.
Tom: Do I need to leave in both 2SLS estimates, or do I choose only 1 for my final code? And when I run the code, I get an error stating:

## CP18. ABLAGS is not the Name of a PROCEDURE. (Did you forget to SOURCE?)
>>>>@ablags(<<<<

Any idea what is going wrong? Thanks.

Re: Holtz-Eakin-Newey-Rosen example

Posted: Mon Aug 23, 2010 11:47 am
by TomDoan
cv003h wrote:
TomDoan wrote: This does single equation estimates using 2SLS, 2SLS with heteroscedasticity robust standard errors and joint estimation using 3SLS, all with the Arellano-Bond sets of instruments.
Tom: Do I need to leave in both 2SLS estimates, or do I choose only 1 for my final code? And when I run the code, I get an error stating:
You only need to leave in whichever one you want. They are all estimated separately.
cv003h wrote:## CP18. ABLAGS is not the Name of a PROCEDURE. (Did you forget to SOURCE?)
>>>>@ablags(<<<<

Any idea what is going wrong? Thanks.
ABLAGS should be provided with RATS. You might want to check with whomever installed the software to see where all the procs are. At any rate, you can get it at:

http://www.estima.com/procs_perl/ablags.src