Sorry, I meant:
'This calculates the sum of lagged t statistics for a number of variables
freeze(tablet!X) eq!X
'Add something like, if (condition for appearance of Wald) !tsa= 1 + 19 + 2 + (!D*7) + ((3 + !OL+1 + 2)*5) + (3 + !TSAL + 1 + 2)
else, !tsa=19 + 2 + (!D*7) + ((3 + !OL+1 + 2)*5) + (3 + !TSAL + 1 + 2)
'!tfp= 19 + 2 + (!D*7) + ((3 + !OL+1 + 2)*5) + (3 + !TSAL + 1 + 2) + (3 + !TFPL + 1 + 2)
'tstattsasplps1(!X)=tablet!X(!tsa,6)
'tstattfp4ps1(!X)=tablet!X(!tfp,6)
Wald F-Statistic and Probability(Wald F-Statistic)
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Re: Wald F-Statistic and Probability(Wald F-Statistic)
I'm attempting to store the sum of lagged t statistics for a number of PDL regression models. To do this, I am freezing each PDL regerssion output into a table and attempting to select the sum of lagged t statistics for a specific variable. Where this sum is in the table is dependent on the # of lags and degress of the polynomials, but also depends on the rest of the output of the pdl regression. For some reason, in many of my models a Wald F-Statistic and Probability(Wald F-Statistic) appear in the area with other summary statistics, while in other models these two measure do not appear. This affects the location of the sum that I am interested in, and has made it very difficult to select the correct one.
Why do these measures appear for some models and not others? I am testing many different lag lengths, with constraint=1 and a 3rd degree polynomial.
If I knew why these measure appeared, a simple confitional like the one I commented in above would probably solve my problem.
Why do these measures appear for some models and not others? I am testing many different lag lengths, with constraint=1 and a 3rd degree polynomial.
If I knew why these measure appeared, a simple confitional like the one I commented in above would probably solve my problem.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Wald F-Statistic and Probability(Wald F-Statistic)
Depends on whether your model has robust standard errors or not.
Re: Wald F-Statistic and Probability(Wald F-Statistic)
eq!X.ls(cov=hac) ps1 c time pdl(ipr,!OL,!D,!C) pdl(un,!OL,!D,!C) pdl(unionprq,!OL,!D,!C) pdl(unipr,!OL,!D,!C) pdl(unionipr,!OL,!D,!C) pdl(tsaspl,!TSAL,!D,!C) pdl(tfp4,!TFPL,!D,!C)
For each regression I am running, I'm using the Newey West option, so shouldn't every model have robust standard errors calculated, and therefore have the Wald Statistic measures printed?
For each regression I am running, I'm using the Newey West option, so shouldn't every model have robust standard errors calculated, and therefore have the Wald Statistic measures printed?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Wald F-Statistic and Probability(Wald F-Statistic)
Also depends on whether you have a constant or not
Re: Wald F-Statistic and Probability(Wald F-Statistic)
I also have a constant in every equation (eq!X.ls(cov=hac) ps1 c time ...), is there another criterion?
Sorry about this...
Sorry about this...
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Wald F-Statistic and Probability(Wald F-Statistic)
Post the workfile with examples of equations with and without.
Re: Wald F-Statistic and Probability(Wald F-Statistic)
Look at eq2 and eq3.
eq2 is
!X=2, !OL=3 !TFPL=3 !TSAL=4
eq3 is
!X=3 !OL=3 !TFPL=3 !TSAL=5
Both eqs have !D=3, !C=1.
eq!X.ls(cov=hac) ps1 c time pdl(ipr,!OL,!D,!C) pdl(un,!OL,!D,!C) pdl(unionprq,!OL,!D,!C) pdl(unipr,!OL,!D,!C) pdl(unionipr,!OL,!D,!C) pdl(tsaspl,!TSAL,!D,!C) pdl(tfp4,!TFPL,!D,!C)
Eq2 has the Wald statistic measures while Eq3 does not.
I attatched my code and a workfile with the regression results. Scroll to the right for the Eqs.
Thanks for your help
eq2 is
!X=2, !OL=3 !TFPL=3 !TSAL=4
eq3 is
!X=3 !OL=3 !TFPL=3 !TSAL=5
Both eqs have !D=3, !C=1.
eq!X.ls(cov=hac) ps1 c time pdl(ipr,!OL,!D,!C) pdl(un,!OL,!D,!C) pdl(unionprq,!OL,!D,!C) pdl(unipr,!OL,!D,!C) pdl(unionipr,!OL,!D,!C) pdl(tsaspl,!TSAL,!D,!C) pdl(tfp4,!TFPL,!D,!C)
Eq2 has the Wald statistic measures while Eq3 does not.
I attatched my code and a workfile with the regression results. Scroll to the right for the Eqs.
Thanks for your help
- Attachments
-
- pdl_alllags_tfp_constraint.prg
- The code
- (4.77 KiB) Downloaded 274 times
-
- data.wf1
- Workfile with equations
- (1.25 MiB) Downloaded 241 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Wald F-Statistic and Probability(Wald F-Statistic)
Looks like a bug, we'll fix it for the next patch.
In the mean time, I guess you could check whether the appropriate cell of the table contains the text "Wald F-statistic".
In the mean time, I guess you could check whether the appropriate cell of the table contains the text "Wald F-statistic".
Re: Wald F-Statistic and Probability(Wald F-Statistic)
Alright, that's unfortunate. Thanks for the quick responses. I've got it all working with a conditional based on the string contents of the general statistic cells.
Who is online
Users browsing this forum: No registered users and 1 guest
