run the prg file Test-ets.prg (modify %path in line 9 if needed), when the prg stops
1 osv(3) = "J2012", and the smooth series COCS, smooth to 1/20/2012 only, not to the end date 2/22/2012 (in osv(2) )
2 if uncomment line 35 (!oi=140), when prg stops, osv(3) = "Q2012". which means ETS smooth to the end date on contract J2012 (fail when !oi=139), but not to end date on contract Q2012
I feel that there is some random behaviour in ETS, is it a bug?
Let's have another try: uncomment line 81 (pagesave) in Test-ets.prg, the active workfile page is extracted. Then run the following code, they forecast to the end date. However, if you uncomment line 83-85 of Test-ets.prg to do the same job, they fail.
Code: Select all
!T = 60 '# of obs in estimation
%otb1 = "1/20/2012"
%otc = "2/22/2012"
' wfopen J2012-1m2.wf1
wfopen Q2012-1m2.wf1
delete cocs
smpl %otb1-!T+1 %otb1
freeze(mode=overwrite, ootb) coc.ets(e=e, t=e, s=e, modsel=hq, forc=%otc) cocs
scalar ets1 = @elem(cocs,%otc)
one more question: if using GUI, the ETS has an option "Reject non-optimized models", how to active this option when running by cmd line?