Page 1 of 1

Add seriesnames as row headings

Posted: Tue Dec 14, 2010 3:26 am
by fboehlandt
Hi everyone,
I have the following simple routine that rotates through all the members of the group 'all' and returns the statistics for the Jarque-Bera and Lilliefors tests. I would like the row headings to be the series names. How do I go about doing this? Here is the code so far:

Code: Select all

matrix(all.@count, 4) lilliefors freeze(jarquetable) all.stats !rowcounter=1 for !i=1 to all.@count %n = all.@seriesname(!i) freeze(normtable) {%n}.edftest lilliefors(!rowcounter,1) = @val(normtable(9,2)) lilliefors(!rowcounter,2) = @val(normtable(9,4)) d normtable lilliefors(!rowcounter,3) = @val(jarquetable(14,1 + !i)) lilliefors(!rowcounter,4) = @val(jarquetable(15,1 + !i)) !rowcounter=!rowcounter+1 next d jarquetable

Re: Add seriesnames as row headings

Posted: Tue Dec 14, 2010 5:12 am
by fboehlandt
okay, figured it out. Who knew that to retrieve a series label one has to refer to a table containing the label? I'm still very confused as to the object declarations in EViews. I recon this will take a bit of time. Also changed the object from matrix to table to allow for non numeric content. Any comments on this greatly appreciated.

Code: Select all

table(all.@count, 5) lilliefors freeze(jarquetable) all.stats !rowcounter=1 for !i=1 to all.@count %n = all.@seriesname(!i) freeze(normtable) {%n}.edftest freeze(labletable) {%n}.label lilliefors(!rowcounter,1) = labletable(3,2) lilliefors(!rowcounter,2) = @val(normtable(9,2)) lilliefors(!rowcounter,3) = @val(normtable(9,4)) d normtable d labletable lilliefors(!rowcounter,4) = @val(jarquetable(14,1 + !i)) lilliefors(!rowcounter,5) = @val(jarquetable(15,1 + !i)) !rowcounter=!rowcounter+1 next d jarquetable