Page 1 of 1

Bug when generating a series from the series itself?

Posted: Sun Oct 19, 2014 11:50 pm
by tvonbrasch
Is this a bug?

If you run the following program:


close @all
%dir = @runpath 'finds directory where program is stored
cd %dir

wfopen untitled
!obs =@obssmpl 'number of observations in sample
%wfname = @wfname
%pagename = @pagename

wfcreate(wf=2) d7 1972 2013
!avobs = @val(@str(0.5*(@obssmpl/!obs),"f.0")) 'average number of
copy(c=i) untitled::untitled\lp_nor_d01t99co lp_nor_d01t99co
genr lp_nor_d01t99co2= lp_nor_d01t99co(!avobs)
genr lp_nor_d01t99co= lp_nor_d01t99co(!avobs)


graph a.line lp_nor_d01t99co lp_nor_d01t99co2


smpl 1992 1995
graph b.line lp_nor_d01t99co lp_nor_d01t99co2


'if you uncomment the following command, and run the program a couple of times, the problem disappears....?
'line lp_nor_d01t99co lp_nor_d01t99co2


you get a strange result. When you plot the two series lp_nor_d01t99co2 and lp_nor_d01t99co, they are note equal (something happens with the series in 1992.
graph.jpg
graph.jpg (41.14 KiB) Viewed 2930 times
.

Is this a bug?

Sincerely
Thomas von Brasch[/b]

Re: Bug when generating a series from the series itself?

Posted: Tue Oct 21, 2014 2:34 pm
by EViews Gareth
Latest patch should fix this.

Re: Bug when generating a series from the series itself?

Posted: Tue Oct 21, 2014 11:09 pm
by tvonbrasch
Perfect, thanks
Thomas