Wald-Test /F-Test for a set of regressions
Posted: Thu Oct 08, 2009 6:20 am
Hi, i have the following problem....would be great if someone can help
My plan is to test if my international benchmakr is efficient.
So i take the constituents of my benchmark, in this case time series for 23 countries and run each country against my international benchmark (msci_world):
equation eq_{%name}.ls(n) {%name} c msci_world
So i test for every country if my country-alpha is signifikant (23 individual regressions for 23 countries).
Here my code:
for !i = 1 to country.@count
%name = country.@seriesname(!i)
equation eq_{%name}.ls(n) {%name} c msci_world
!s= eq_{%name}.@regobs - eq_{%name}.@ncoef
table countrydata
countrydata(!i,1) = eq_{%name}.@coef(1)
countrydata(!i,2) = eq_{%name}.@coef(2)
countrydata(!i,3) = eq_{%name}.@tstat(1)
countrydata(!i,4) = eq_{%name}.@tstat(2)
countrydata(!i,5) = @tdist(eq_{%name}.@tstat(1),!s)
countrydata(!i,6) = @tdist(eq_{%name}.@tstat(2),!s)
countrydata(!i,7) = eq_{%name}.@r2
countrydata(!i,8) = eq_{%name}.@rbar2
next
Question:
How can i test if all the alphas together are significant. So i don't just want to receive the country individual alpha, but also an alpha and a test for the whole set of 23 equtions (equation eq_{%name}.ls(n) {%name} c msci_world). I think i can use the wald test, but how do i get the test to include all equations together?
Is there a way to include it in my written code?
Thanks for your help!
My plan is to test if my international benchmakr is efficient.
So i take the constituents of my benchmark, in this case time series for 23 countries and run each country against my international benchmark (msci_world):
equation eq_{%name}.ls(n) {%name} c msci_world
So i test for every country if my country-alpha is signifikant (23 individual regressions for 23 countries).
Here my code:
for !i = 1 to country.@count
%name = country.@seriesname(!i)
equation eq_{%name}.ls(n) {%name} c msci_world
!s= eq_{%name}.@regobs - eq_{%name}.@ncoef
table countrydata
countrydata(!i,1) = eq_{%name}.@coef(1)
countrydata(!i,2) = eq_{%name}.@coef(2)
countrydata(!i,3) = eq_{%name}.@tstat(1)
countrydata(!i,4) = eq_{%name}.@tstat(2)
countrydata(!i,5) = @tdist(eq_{%name}.@tstat(1),!s)
countrydata(!i,6) = @tdist(eq_{%name}.@tstat(2),!s)
countrydata(!i,7) = eq_{%name}.@r2
countrydata(!i,8) = eq_{%name}.@rbar2
next
Question:
How can i test if all the alphas together are significant. So i don't just want to receive the country individual alpha, but also an alpha and a test for the whole set of 23 equtions (equation eq_{%name}.ls(n) {%name} c msci_world). I think i can use the wald test, but how do i get the test to include all equations together?
Is there a way to include it in my written code?
Thanks for your help!