Save the Chi-square value of a Wald test

For questions regarding programming in the EViews programming language.

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

wxhdiy01
Posts: 21
Joined: Wed Apr 13, 2016 7:07 am

Save the Chi-square value of a Wald test

Postby wxhdiy01 » Mon Aug 15, 2016 12:09 pm

Hi! I was estimating multiple equations and perform Wald tests on them. There are 40 equations in total, thus 40 Chi-square values. Is there a way to automatically store these values, preferably into one table? I've searched the help documents for Wald test, but didn't find anything related to how to retrieve the Chi-square value. I think I need something before the last 2 "next" in my code...

Thanks!

Code: Select all

for %y y1 y2 y3 y4 y5 y6 y7 y8 for !n=1 to 5 %reg="" %thresh="t1 t2 t3 t4 t5" for !power=0 to 3 equation lt_!n_{%y} for !lnlag=1 to 7 %new=@word(%thresh,!n) %reg=%reg+%y+"("+@str(-!lnlag)+")"+"*"+%new+"^"+@str(!power)+" " next next lt_!n_{%y}.ls {%y} c {%reg} 'Wald test %wald="" for !m=9 to 29 %wald=%wald+"c("+@str(!m)+")=" next lt_!n_{%y}.wald {%wald}0 next next

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

Re: Save the Chi-square value of a Wald test

Postby EViews Gareth » Mon Aug 15, 2016 1:44 pm


wxhdiy01
Posts: 21
Joined: Wed Apr 13, 2016 7:07 am

Re: Save the Chi-square value of a Wald test

Postby wxhdiy01 » Tue Aug 16, 2016 5:12 am

Great, that's exactly what I want. Thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests