Nr. coefficients and instrument rank for DPD GMM (EV6)

For questions regarding programming in the EViews programming language.

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

nadja123
Posts: 72
Joined: Thu Aug 06, 2009 10:43 am

Nr. coefficients and instrument rank for DPD GMM (EV6)

Postby nadja123 » Thu Oct 06, 2011 11:11 am

Hello there,
this is something easy, but I can't find it quickly. I fancy that EV7 offers @jstat, @jprob, @ncoef and @instrank. But I want to compute the p-value for J-stat in EV6, for the estimate DPD GMM equation eq01. This is what I have:
scalar pvaljstat = @chisq(myjstat, p - k)
with

Code: Select all

scalar myjstat = eq01.@jstat scalar k = eq01.@ncoefs
How about instrument rank p? It should be the rank of the instrument matrix, but how to get that? Thanks for helping.

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

Re: Nr. coefficients and instrument rank for DPD GMM (EV6)

Postby EViews Gareth » Thu Oct 06, 2011 11:14 am

You'll have to free the equation output into a table, and then extract the instrument rank from that table.

nadja123
Posts: 72
Joined: Thu Aug 06, 2009 10:43 am

Re: Nr. coefficients and instrument rank for DPD GMM (EV6)

Postby nadja123 » Thu Oct 06, 2011 11:44 am

Hello there,
but the size of the table as you suggest can differ for every equation I estimate (depending on the specification, etc.).
No, this does not seem the way to go at all, as I want to run my code for various specs.
Pls let me know the programming path to do it. Thanks.

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

Re: Nr. coefficients and instrument rank for DPD GMM (EV6)

Postby EViews Gareth » Thu Oct 06, 2011 11:56 am

You can figure out where the instrument rank is by searching through the table looking for the text "Instrument rank", and then grabbing the cell next to it.

That's the only solution (other than upgrading to EViews 7).


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests