Bug when generating a series from the series itself?
Posted: Sun Oct 19, 2014 11:50 pm
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.
.
Is this a bug?
Sincerely
Thomas von Brasch[/b]
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.
.
Is this a bug?
Sincerely
Thomas von Brasch[/b]