I have a query in relation to Tramo/Seats.
If I run the following script on a series (I pasted the series as values here for ease), I get a different result with the proc window than I do with the command language even though I think it should be identical.
See the two graphs attached for a comparison.
I also tried using the exact commands captured in capture window, but that just fails to run (see “Attempt 2”).
Any idea how to adjust my attempt at running this so that I can get the same result as is produced by the proc window?
E
Code: Select all
wfcreate(wf=Test, page=1) m 2013.1 2021.6
series t = na
t.adjust = 1386.968 1227.182 1051.993 1377.385 1078.66 1169.998 1301.01 1110.658 1107.341 1319.333 2349.146 1278.234 1235.562 1467.736533 1235.876672 1466.459795 1192.488 1233.139 1415.554 1336.576 1184.257 1360.955 2637.145 1391.718 1503.834 1382.937 1354.402 1507.404 1289.845 1270.407 1454.62 1458.669 1222.038 1416.734 2705.744 1792.61 1634.431 1502.93 1218.131 1748.749 1333.021 1333.655 1519.375 1408.408 1254.571 1484.149 3107.39 1624.16 1642.015 1481.516 1293.682 1762.262 1445.038 1420.902 1674.365 1496.762 1388.458 1645 3033 1726 1750 1584 1334 1868 1554 1653 1704 1604 1483.536 1733.464 3187 1787 1883 1589 1501 1992 1760 1767 1727 1861 1672 1837 3530 1815 2198 1780 1665 1877 1623 1399 1589 1755 1543 1584 2512 3186 2283 1751 1835 2120 2177 2042
series dumdate1 = @recode(@date=@dateval("2020m11"),1,0)
series dumdate2 = @recode(@date=@dateval("2020m12"),1,0)
' Attempt 1
t.tramoseats(runtype=ts opt="seats=2 mq=12 inic=3 idif=3 itrad=iatip=1 aio=0 ireg=2", reg="DUMDATE1", reg="DUMDATE2", save="sa") t
' Attempt 2 (taken from capture script and will not run)
t.tramoseats(opt="seats=2 mq=12 inic=3 idif=3 itrad=iatip=1 aio=0 ireg=1", reg="iuser=-1, nser=1, ilong=110", regname=DUMDATE1, reg="iuser=-1, nser=1, ilong=110", regname=DUMDATE2, save="sa") t