Programming tramoseats
Posted: Sun Jul 20, 2014 1:33 pm
Hi everyone,
I want to check the stability of the ARIMA parameters of my seasonally adjusted time series created by Tramo/Seats using EViews 7. By doing so, I need to use a for loop in which I would like to change the ARIMA parameters in the input namelist of Tramo/Seats. Sadly, I realized that barely typing the appropriate commands (my ARIMA parameters are in string objects) instead of exact numbers is not the right solution. After noticing that the input namelist is a string, I tried to concatenate strings in the following way:
for !horizon=1 to 8
for !i=0 to !horizon
smpl 1995:1 2012:1 + !horizon
s.tramoseats(runtype=ts, save=sa lin, opt="MQ=4 OUT=1 SEATS=2 LAM=-1 IEAST=-1 IDUR=6 ITRAD=-2 P=" + @str(@mid(s_arima{!i},4,1)) + " D=" + @str(@mid(s_arima{!i},6,1)) +" Q=" + @str(@mid(s_arima{!i},8,1)) +" BP=" + @str(@mid(s_arima{!i},11,1)) +" BD=" + @str(@mid(s_arima{!i},13,1)) +" BQ=" + @str(@mid(s_arima{!i},15,1)) +" IATIP=1 AIO=2 IMVX=1 INCON=0 INIT=0 IREG=1", reg="IUSER=-2 NSER=1 ILONG=85", regname= holiday) s_tramoseats{!horizon}_{!i}
next
This didn't help either. Do you have thus any suggestions regarding substituting parts in the input namelist of Tramo/Seats with references like these?
Thanks for your help, I would really appreciate it!
Cheers,
Petya
I want to check the stability of the ARIMA parameters of my seasonally adjusted time series created by Tramo/Seats using EViews 7. By doing so, I need to use a for loop in which I would like to change the ARIMA parameters in the input namelist of Tramo/Seats. Sadly, I realized that barely typing the appropriate commands (my ARIMA parameters are in string objects) instead of exact numbers is not the right solution. After noticing that the input namelist is a string, I tried to concatenate strings in the following way:
for !horizon=1 to 8
for !i=0 to !horizon
smpl 1995:1 2012:1 + !horizon
s.tramoseats(runtype=ts, save=sa lin, opt="MQ=4 OUT=1 SEATS=2 LAM=-1 IEAST=-1 IDUR=6 ITRAD=-2 P=" + @str(@mid(s_arima{!i},4,1)) + " D=" + @str(@mid(s_arima{!i},6,1)) +" Q=" + @str(@mid(s_arima{!i},8,1)) +" BP=" + @str(@mid(s_arima{!i},11,1)) +" BD=" + @str(@mid(s_arima{!i},13,1)) +" BQ=" + @str(@mid(s_arima{!i},15,1)) +" IATIP=1 AIO=2 IMVX=1 INCON=0 INIT=0 IREG=1", reg="IUSER=-2 NSER=1 ILONG=85", regname= holiday) s_tramoseats{!horizon}_{!i}
next
This didn't help either. Do you have thus any suggestions regarding substituting parts in the input namelist of Tramo/Seats with references like these?
Thanks for your help, I would really appreciate it!
Cheers,
Petya