Outputting Johansen test results to a spool
Posted: Mon Mar 08, 2010 11:31 am
Hello,
I am trying to run multiple Johansen tests, and save the output to a spool. I don't know of another way to do this other than with the output(s) command. The below program worked fine previously -- but rerunning it recently, none of the output goes to spool anymore: it just pops up window after window for each individual test output. The spools remain unpopulated.
I haven't changed anything about the program itself -- is it possible that I've changed one of the default settings (for printing or something) that would be causing this? The entire program runs over a hundred tests, and exceeds the allowable number of windows in Eviews....
Here is the relevant piece of code. Any help would be greatly appreciated!
Thank you,
Rachel
call v_all_coint
subroutine v_all_coint
for %vehicle ld
call {%vehicle}_coint_tests
next
endsub
Subroutine {%vehicle}_coint_tests
open "all_data.wf1"
smpl @all
cd "Code\Logs"
if %vehicle = "ld" then
!m = 11
%vars_1 = "(ld_total_vmt/pop) (real_gdp_2005$/pop) (real_gas_2000$/ld_mpg) @ (pop/nhh)"
%vars_2 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) @ (pop/nhh)"
%vars_3 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (cities_with_transit)"
%vars_4 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) @ (pop/nhh) (total_prm/pop)"
%vars_5 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) (cities_with_transit) @ (total_prm/pop)"
%vars_6 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) (cities_with_transit) @ (pop/nhh) (total_prm/pop)"
%vars_7 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) (bus_and_rail_miles/pop) @ (pop/nhh) (total_prm/pop)"
%vars_8 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) @ (pop/nhh)"
%vars_9 = "(ld_total_vmt/pop) percent_pop_ne+percent_pop_mw (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (percent_pop_ne+percent_pop_mw)*percent_pop_urban @ percent_pop_urban"
%vars_10 = "(ld_total_vmt/pop) percent_pop_ne+percent_pop_mw (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) (percent_pop_ne+percent_pop_mw)*percent_pop_urban @ percent_pop_urban"
%vars_11 = "(ld_total_vmt/pop) percent_pop_ne+percent_pop_mw (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (percent_pop_ne+percent_pop_mw)*percent_pop_urban @ (pop/nhh) percent_pop_urban"
endif
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Set parameters and create spool
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
%test = "c" 'Sets the test option (i.e., trend and intercept assumptions): see p. 203 of Eviews command reference
for !n = 1 to 3 'Number of lags
spool coint_spool_{%vehicle}_{!n}lag
output(s) coint_spool_{%vehicle}_{!n}lag
coint_spool_{%vehicle}_{!n}lag.tablemode(type=variable)
coint_spool_{%vehicle}_{!n}lag.width 10
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Cointegration Tests
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
for !i = 1 to !m
coint({%test}, {!n}) {%vars_{!i}}
next
I am trying to run multiple Johansen tests, and save the output to a spool. I don't know of another way to do this other than with the output(s) command. The below program worked fine previously -- but rerunning it recently, none of the output goes to spool anymore: it just pops up window after window for each individual test output. The spools remain unpopulated.
I haven't changed anything about the program itself -- is it possible that I've changed one of the default settings (for printing or something) that would be causing this? The entire program runs over a hundred tests, and exceeds the allowable number of windows in Eviews....
Here is the relevant piece of code. Any help would be greatly appreciated!
Thank you,
Rachel
call v_all_coint
subroutine v_all_coint
for %vehicle ld
call {%vehicle}_coint_tests
next
endsub
Subroutine {%vehicle}_coint_tests
open "all_data.wf1"
smpl @all
cd "Code\Logs"
if %vehicle = "ld" then
!m = 11
%vars_1 = "(ld_total_vmt/pop) (real_gdp_2005$/pop) (real_gas_2000$/ld_mpg) @ (pop/nhh)"
%vars_2 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) @ (pop/nhh)"
%vars_3 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (cities_with_transit)"
%vars_4 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) @ (pop/nhh) (total_prm/pop)"
%vars_5 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) (cities_with_transit) @ (total_prm/pop)"
%vars_6 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) (cities_with_transit) @ (pop/nhh) (total_prm/pop)"
%vars_7 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) (bus_and_rail_miles/pop) @ (pop/nhh) (total_prm/pop)"
%vars_8 = "(ld_total_vmt/pop) (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) @ (pop/nhh)"
%vars_9 = "(ld_total_vmt/pop) percent_pop_ne+percent_pop_mw (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (percent_pop_ne+percent_pop_mw)*percent_pop_urban @ percent_pop_urban"
%vars_10 = "(ld_total_vmt/pop) percent_pop_ne+percent_pop_mw (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (new_vehicle_price_2005$) (percent_pop_ne+percent_pop_mw)*percent_pop_urban @ percent_pop_urban"
%vars_11 = "(ld_total_vmt/pop) percent_pop_ne+percent_pop_mw (real_pers_disp_inc_2005$/pop) (real_gas_2000$/ld_mpg) (percent_pop_ne+percent_pop_mw)*percent_pop_urban @ (pop/nhh) percent_pop_urban"
endif
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Set parameters and create spool
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
%test = "c" 'Sets the test option (i.e., trend and intercept assumptions): see p. 203 of Eviews command reference
for !n = 1 to 3 'Number of lags
spool coint_spool_{%vehicle}_{!n}lag
output(s) coint_spool_{%vehicle}_{!n}lag
coint_spool_{%vehicle}_{!n}lag.tablemode(type=variable)
coint_spool_{%vehicle}_{!n}lag.width 10
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Cointegration Tests
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
for !i = 1 to !m
coint({%test}, {!n}) {%vars_{!i}}
next