Seasonal Adjustment
Moderators: EViews Gareth, EViews Moderator
Seasonal Adjustment
Dear all,
Do you know how can I remove seasonality from a series imposing the restriction that yearly totals of the seasonally adjusted series to equal those of the original series?
I checked in X-13ARIMA-SEATS Reference Manual and it is possible (section 7.6 FORCE), but I am having problems in implementing it directly on EViews.
Thanks in advance.
Bruno.
Do you know how can I remove seasonality from a series imposing the restriction that yearly totals of the seasonally adjusted series to equal those of the original series?
I checked in X-13ARIMA-SEATS Reference Manual and it is possible (section 7.6 FORCE), but I am having problems in implementing it directly on EViews.
Thanks in advance.
Bruno.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13312
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Seasonal Adjustment
You can probably do it via command using the spec= option to provide your own spec file.
Follow us on Twitter @IHSEViews
Re: Seasonal Adjustment
Thank you Gareth.
I created a spec file with the contents:
force{ lambda = 0.0 mode = ratio rho = 0.85 round = no start = oct target = calendaradj type = regress usefcst = no print = (none saa) save = saa }
I gave the instruction "gcn.x13(sfile=C:\Users\"..."\example.spc) gcnsa" but it doesn't work.
The error message is "?C:\USERS\"..."
\EXAMPLE.SPC not found on disk.
Do you have any suggestion.
Thanks.
I created a spec file with the contents:
force{ lambda = 0.0 mode = ratio rho = 0.85 round = no start = oct target = calendaradj type = regress usefcst = no print = (none saa) save = saa }
I gave the instruction "gcn.x13(sfile=C:\Users\"..."\example.spc) gcnsa" but it doesn't work.
The error message is "?C:\USERS\"..."
\EXAMPLE.SPC not found on disk.
Do you have any suggestion.
Thanks.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13312
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Seasonal Adjustment
Yes, I gave.
It works, I mean without any error message, if I do it manually.
I performed a seasonal adjustment with menus, then I created a text file with the name "dois".
I modified it by adding the "force" option, please find it below.
Then I gave the command: "trn.x13(spec=dois)" but the option "force" doesn't work.
The annual sums of the original series doesn't match with the deseasonalized ones.
Moreover, if I omit the force instruction it doesn't make any difference.
Can you help me please?
Do you have any suggestion to desasonalize a series in such a way that the annual sums of the desasonalized series equals the annual sums of the original series?
My text file:
series{
title = "trn"
start = 1999.1
period = 4
modelspan = (1999.01, 2015.01)
name = "TRN"
file = "C:\Users\bdamasio\AppData\ev_temp\EVX13TMP.DAT"
decimals = 1
}
x11{
save = (d11)
}
force {
mode=ratio
save= e6a
target=original
type=denton
}
It works, I mean without any error message, if I do it manually.
I performed a seasonal adjustment with menus, then I created a text file with the name "dois".
I modified it by adding the "force" option, please find it below.
Then I gave the command: "trn.x13(spec=dois)" but the option "force" doesn't work.
The annual sums of the original series doesn't match with the deseasonalized ones.
Moreover, if I omit the force instruction it doesn't make any difference.
Can you help me please?
Do you have any suggestion to desasonalize a series in such a way that the annual sums of the desasonalized series equals the annual sums of the original series?
My text file:
series{
title = "trn"
start = 1999.1
period = 4
modelspan = (1999.01, 2015.01)
name = "TRN"
file = "C:\Users\bdamasio\AppData\ev_temp\EVX13TMP.DAT"
decimals = 1
}
x11{
save = (d11)
}
force {
mode=ratio
save= e6a
target=original
type=denton
}
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13312
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Seasonal Adjustment
Your spec file should not have a series statement.
Follow us on Twitter @IHSEViews
Re: Seasonal Adjustment
I erased the series statement but the results are the same: the sums doesn't match and the desasonalized series doesn't change if I drop also the force statement.
Any suggestion Gareth?
My test file:
x11{
save = (d11)
}
force {
mode=ratio
save= e6a
target=original
type=denton
}
if I consider this one
"x11{
save = (d11)
}"
or this one
"x11{
save = (d11)
}
force {
}"
The deseasonalized series doesn't change.
Any suggestion Gareth?
My test file:
x11{
save = (d11)
}
force {
mode=ratio
save= e6a
target=original
type=denton
}
if I consider this one
"x11{
save = (d11)
}"
or this one
"x11{
save = (d11)
}
force {
}"
The deseasonalized series doesn't change.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13312
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Seasonal Adjustment
Have the series open when issuing the command. Then you can see the X-13 output in the series. See if the X-13 output says anything about FORCE.
Follow us on Twitter @IHSEViews
Re: Seasonal Adjustment
Please find attached the output.
It just reproduce the spec file, I think it doesn't explicitly refers the FORCE option.
It just reproduce the spec file, I think it doesn't explicitly refers the FORCE option.
- Attachments
-
- x13_output.txt
- (41.43 KiB) Downloaded 387 times
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13312
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Seasonal Adjustment
Well that shows that X-13 is receiving your FORCE option ok. No idea what it is doing with it.
Follow us on Twitter @IHSEViews
Re: Seasonal Adjustment
So do you have any tip or trick, for instance an alternative way or procedure, to help me solve the aforementioned issue?
It is possible to put it into practice throughout EViews 9?
Thank you.
It is possible to put it into practice throughout EViews 9?
Thank you.
-
- Posts: 39
- Joined: Fri Sep 18, 2015 11:41 am
- Location: Dublin, Ireland
- Contact:
Re: Seasonal Adjustment
Hi Bruno (bdamasio).
I've attached a program (x13force.prg) containing a subroutine that should do the trick.
You might need to make a few changes to the specification file (which I create as a text object). Depending on how you have EViews set up on your computer, you may not have to make any other changes to the program; say, with regard to locating the .saa file.
It ain't pretty, but it seems to get the job done.
Cheers,
Graeme
I've attached a program (x13force.prg) containing a subroutine that should do the trick.
You might need to make a few changes to the specification file (which I create as a text object). Depending on how you have EViews set up on your computer, you may not have to make any other changes to the program; say, with regard to locating the .saa file.
It ain't pretty, but it seems to get the job done.
Cheers,
Graeme
- Attachments
-
- x13force.prg
- x13force.prg
- (2.31 KiB) Downloaded 406 times
Re: Seasonal Adjustment
Dear xprimexinverse,
Thank you very much!
It did works!
Bruno.
Thank you very much!
It did works!
Bruno.
Return to “General Information and Tips and Tricks”
Who is online
Users browsing this forum: No registered users and 7 guests