Extracting HAC covariance matrix from GMM estimation

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

kusdhianto
Posts: 14
Joined: Thu Apr 22, 2010 2:40 am

Extracting HAC covariance matrix from GMM estimation

Postby kusdhianto » Wed Feb 23, 2011 8:41 am

Hello,

How to extract HAC variance-covariance matrix used in GMM estimation?

Thanks

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

Re: Extracting HAC covariance matrix from GMM estimation

Postby EViews Gareth » Wed Feb 23, 2011 10:03 am

You can use

Code: Select all

equation.@instwgt

kusdhianto
Posts: 14
Joined: Thu Apr 22, 2010 2:40 am

Re: Extracting HAC covariance matrix from GMM estimation

Postby kusdhianto » Wed Feb 23, 2011 10:34 am

many thanks for your quick response,

still no luck. Sorry I am new in EViews programming. Here is my equation:

Code: Select all

equation myeq.GMM(METHOD=CONVERGE,INSTWGT=HAC,INSTLAG=A,INSTINFO=AIC,INSTKERN=THANN,INSTBW=ANDREWS,NOCINST,COV=HAC,COVLAG=A,COVINFO=AIC,B,DERIV=AA) (C(1)*(US_RCONS/US_RCONS(-1))^-C(2))*(US_RRM_C)-1 @ 1 US_RCONS(-1)/US_RCONS(-2) US_RRM_C(-1)
where I should put your code?

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

Re: Extracting HAC covariance matrix from GMM estimation

Postby EViews Gareth » Wed Feb 23, 2011 10:41 am

Code: Select all

equation myeq.GMM(METHOD=CONVERGE,INSTWGT=HAC,INSTLAG=A,INSTINFO=AIC,INSTKERN=THANN,INSTBW=ANDREWS,NOCINST,COV=HAC,COVLAG=A,COVINFO=AIC,B,DERIV=AA) (C(1)*(US_RCONS/US_RCONS(-1))^-C(2))*(US_RRM_C)-1 @ 1 US_RCONS(-1)/US_RCONS(-2) US_RRM_C(-1) matrix wgts = myeq.@instwgt

kusdhianto
Posts: 14
Joined: Thu Apr 22, 2010 2:40 am

Re: Extracting HAC covariance matrix from GMM estimation

Postby kusdhianto » Wed Feb 23, 2011 11:12 am

thank you so much

best regards


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests