@jprob for panel GMM equation (EV7)

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

@jprob for panel GMM equation (EV7)

Postby nadja123 » Fri Oct 21, 2011 10:31 am

Hello there,

the command

Code: Select all

scalar myjprob = eq01.@jprob
does "successfully compute" the p-value, but the value is actually NA. (Doing it other way gives a numeric value). Is this a bug?

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

Re: @jprob for panel GMM equation (EV7)

Postby EViews Gareth » Fri Oct 21, 2011 11:05 am

That's a really cryptic statement. What do you mean?

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

Re: @jprob for panel GMM equation (EV7)

Postby nadja123 » Sat Oct 22, 2011 1:08 pm

How would I tell you... Suppose quation eq01.gmm(options) has been estimated in a balanced panel workfile. Then

Code: Select all

scalar myf*** = eq01.@jstat
computes the J-statistic. I want the p-value to J-statistic. In the help doc to EV7 there is mentioned
@jprob probability value of the J-statistic
as one of the equation data members. How to get that computed? Thank you.

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

Re: @jprob for panel GMM equation (EV7)

Postby EViews Gareth » Sat Oct 22, 2011 1:56 pm

Still not quite sure I follow your question, but perhaps the following will help:

Code: Select all

create u 100 rndseed 1 series y=nrnd series x=nrnd series z1=nrnd series z2=nrnd equation eq1.gmm y c x @ z1 z2 scalar auto = eq1.@jprob scalar manual = 1 - @cchisq(eq1.@jstat, 1)
You can see that the scalar calculated by eq1.@jprob is equal to the scalar calculated manually using the j-stat.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: @jprob for panel GMM equation (EV7)

Postby EViews Glenn » Mon Oct 24, 2011 9:26 am

From what he says it might be in the panel equation estimator not the standard GMM. Can you send your workfile to support@eviews.com or post it here...Let us know what equation it is...

[edit]

We've replicated on this end. The @jprob keyword was added to EVIews 7 equations in the improvements to single equation GMM, but we neglected to update the earlier panel code. This will be fixed in the next update. For now, just use the @ncoefs, @jstat, @instrank members of the equation and the @chisq function to compute the p-val...


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests