GMM - counting of instruments

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

tvonbrasch
Posts: 540
Joined: Fri Apr 15, 2011 5:35 am

GMM - counting of instruments

Postby tvonbrasch » Wed May 19, 2021 10:07 pm

Hi,

I am estimating an equation using GMM in a panel workfile:

Code: Select all

equation eq.gmm y=exp(c(1))*x1+c(2)*x2+exp(c(3))*x3+(((2*exp(c(1))*(exp(c(3))-1))/( (c(2)^2+4*exp(c(1)))^0.5+c(2)) ) -c(2))*x4 @ x1 x2 x3 x4 ID


where ID is the cross-section identifier. If I alternatively create a dummy variable for each cross-section identifier and estimate the equation

Code: Select all

equation eq.gmm y=exp(c(1))*x1+c(2)*x2+exp(c(3))*x3+(((2*exp(c(1))*(exp(c(3))-1))/( (c(2)^2+4*exp(c(1)))^0.5+c(2)) ) -c(2))*x4 @ x1 x2 x3 x4 dummy1 dummy2 ... dummyN


I get identical results (see pictures below). The advantage of using the first specification is that it is about 15 times faster than the second specification (maybe because of sparse matrix functionality ...).

However, if I remove X1, X2, X3 and X4 as instruments, I can only estimate the second equation. The reason is that EViews states that when using the command

Code: Select all

equation eq.gmm y=exp(c(1))*x1+c(2)*x2+exp(c(3))*x3+(((2*exp(c(1))*(exp(c(3))-1))/( (c(2)^2+4*exp(c(1)))^0.5+c(2)) ) -c(2))*x4 @ ID

the order condition is violated as there are too few instruments. But is this not because EViews counts the ID variable as being one instrument (and not equal to the number of cross-sections?).

Question 1: are the first two gmm equation specifications above equivalent?

Question 2: if yes, why does not EViews count the ID variable as multiple instruments, equal to the number of cross-sections?

t

gmm1.png
gmm1.png (35.19 KiB) Viewed 4953 times

gmm2.png
gmm2.png (17.61 KiB) Viewed 4953 times

gmm3.png
gmm3.png (17.54 KiB) Viewed 4953 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13307
Joined: Tue Sep 16, 2008 5:38 pm

Re: GMM - counting of instruments

Postby EViews Gareth » Thu May 20, 2021 7:12 am

Its weird that they give identical results. You've essentially done this:

Code: Select all

create a 1990 2000 5
series y=nrnd
series x=nrnd
series z1=nrnd
equation eq1.gmm y c x @ c z1 @expand(@crossid)
equation eq2.gmm y c x @ c z1 @crossid


I think?
Follow us on Twitter @IHSEViews

tvonbrasch
Posts: 540
Joined: Fri Apr 15, 2011 5:35 am

Re: GMM - counting of instruments

Postby tvonbrasch » Fri May 21, 2021 11:21 pm

yes, you are correct. i do not understand why I get identical results ...
t

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: GMM - counting of instruments

Postby startz » Sat May 22, 2021 7:12 am

I may have read too quickly, but are all your independent variables also instruments in the first two?

tvonbrasch
Posts: 540
Joined: Fri Apr 15, 2011 5:35 am

Re: GMM - counting of instruments

Postby tvonbrasch » Sat May 29, 2021 10:25 pm

Hi,

Thanks for looking into this. Yes, that is what I did, but it was not what I actually wanted to do. My mistake .... I just wanted to use the indicators as instruments, based on the estimator proposed in Feenstra (1994), i.e. where the instruments are dummy variables across the cross-sections. I thought that the estimation results being equal in my particular case was due to how I constructed Y, X1 etc. But are you indicating it is because I (wrongfully) used all independent variables also as instruments?

t


Feenstra, R. C. (1994). New product varieties and the measurement of international prices. American Economic Review, 84(1), 157–177

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: GMM - counting of instruments

Postby startz » Sun May 30, 2021 6:33 am

If you use all the independent variables as instruments, at least in a linear model, you basically get the least squares estimates.

tvonbrasch
Posts: 540
Joined: Fri Apr 15, 2011 5:35 am

Re: GMM - counting of instruments

Postby tvonbrasch » Sun May 30, 2021 11:50 am

Aha, great, thanks for your feedback!
t


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 37 guests