Programming tramoseats

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Petya
Posts: 3
Joined: Sun Jul 20, 2014 12:56 pm

Programming tramoseats

Postby Petya » 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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Programming tramoseats

Postby EViews Gareth » Sun Jul 20, 2014 9:38 pm

Build up the option string on a previous line, storing it in a string variable, then use the string variable with braces around it on the tramoseats line.

Petya
Posts: 3
Joined: Sun Jul 20, 2014 12:56 pm

Re: Programming tramoseats

Postby Petya » Mon Jul 21, 2014 1:45 am

Thanks a lot, this was extremely helpful!

Petya
Posts: 3
Joined: Sun Jul 20, 2014 12:56 pm

Re: Programming tramoseats

Postby Petya » Tue Aug 19, 2014 8:05 am

Hey again,

I have an additional question regarding TRAMO/SEATS. I would like to have a look at the estimated spectrum of my time series. According to the Manual pdf file in my EViews7 directory (pp. 90), SEATS produces various arrays in files into the so-called GRAPH directory. Unfortunately I cannot find this directory, and I don't know how to plot (or save) these series apart from the basic ones listed in the Object reference (hat, lin, pol, sa, trd, ir, sf, cyc).

Do you thus have any idea how to plot a spectrum from TRAMO/SEATS in EViews?

Thanks for your response!

Cheers,
Petya

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Programming tramoseats

Postby EViews Gareth » Tue Aug 19, 2014 8:09 am

Click on Options->General Options->File Locations. Then look at the temp path. That's where the GRAPH directory will be.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests