prints some automatic() results
prtauto_multi(results,namemod,test,path,out)
* results = a tlist provided by function automatic
* namemod = the name of the sub-results to print in the results tlist ('stage 1 models' or 'stage 2 models')
* test = %t if the user wants to print the specification tests results ; %f if not
* path = %t if the user wants to print the name of the successively eliminated variables that lead to the printed models
* out = the file where the results are printed
* nothing, just print the results
load(GROCERDIR+'/data/bdhenderic.dat') ; bounds('1964q3','1989q2') // column HE in table 9 of Hendry and Krozlig paper //r=ols('delts(lm1-lp)','lagts(lm1-lp-ly)','delts(lp)','rnet','delts(lagts(lm1-lp-ly))','cte') // this example allows the user to recover // the results of columns Final model A and Final model B // in table 9 of Hendry and Krozlig paper [r1]=automatic('delts(lm1-lp)','lagts(lm1-lp-ly)',... 'delts(lp)',... 'rnet',... 'delts(lagts(lm1-lp))','delts(lagts(2,lm1-lp))','delts(lagts(3,lm1-lp))','delts(lagts(4,lm1-lp))',... 'delts(ly)','delts(lagts(1,ly))','delts(lagts(2,ly))','delts(lagts(3,ly))','delts(lagts(4,ly))',... 'delts(delts(lp))','delts(delts(lagts(1,lp)))','delts(delts(lagts(2,lp)))','delts(delts(lagts(3,lp)))','delts(delts(lagts(4,lp)))',... 'delts(rnet)','delts(lagts(1,rnet))','delts(lagts(2,rnet))','delts(lagts(3,rnet))','delts(lagts(4,rnet))',... 'const','prt=nothing') prtauto_multi(r1,'stage 1 models',%t,%t) // displays on screen (no fifth argument) stage 1 models results including specification tests, // and the path corresponding to the models. prtauto_multi(r,'stage 2 models',%t,%f) // Displays on screen (no fifth argument) stage 2 models results including specification tests, but without giving the path corresponding to the models. | ![]() | ![]() |