Page 1 of 1

d table command (duplicate object error)

Posted: Mon Nov 29, 2010 7:46 am
by fboehlandt
Hi everyone,
new to programming in EViews but have some VBA background. Something does not work with the code below: the 'd normtable' command fails. I would like to extract the lilliefors test statistic and pvalue for every series in mygroup. The code stops when trying to loop again (i = 2) because 'normtable' is already open. I'm sure this is easily resolved. cheers

matrix(mygroup.@count, 2) lilliefors
!rowcounter=1
for !i=1 to all_fof_pcs.@count
%n = mygroup.@seriesname(!i)
freeze(normtable) {%n}.edftest
lilliefors(!rowcounter, 1) = @val(normtable(9,2))
lilliefors(!rowcounter,2) = @val(normtable(9,4))
!rowcounter=!rowcounter+1
d normtable
next

Re: d table command (duplicate object error)

Posted: Mon Nov 29, 2010 7:53 am
by fboehlandt
never mind
there was actually a table called 'normtable' in the workfile. Mea culpa