Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSW+ to JDemetra+ #461

Open
luisjo819 opened this issue Jun 26, 2019 · 4 comments
Open

TSW+ to JDemetra+ #461

luisjo819 opened this issue Jun 26, 2019 · 4 comments

Comments

@luisjo819
Copy link

Because of my job I have to translate de seasonal adjustment of series from TSW+ (Tramo/Seats software from Bank of Spain) to JDemetra+.
Whenever I try to replicate the same parameters that are in TSW+ software for seasonal adjustments (RS4), the seasonal adjusted series is always different from the one from JDemetra+.
In TSW+ I use the all the default settings excep RS4 for Procedure parameters, Log transformation, Easter effect of 3 days, and the introduction of two regresion variables (holidays and leap-year[February dummy] in an excel table) in the seasonal component. I try the same in JDemetra+ but the outputs are diferent in both softwares.
Because of my job I need that both outputs to be the same. Is that possible? I thought that the core engines of “Tramo/Seats” from both software’s were the same. Please help me.

@palatej
Copy link
Contributor

palatej commented Jun 27, 2019

Hello,

The core engines are not the same and the results might be different (mainly due to some small discrepancies in the optimization procedure). However, in most cases they should be very similar. If you get systematically different results, the problem is probably elsewhere. You mention that you use RSA4 (which means, amongst other things, automatic detection of working days/leap year) + a leap year variable. That leads to redundant regression models (twice the leap-year) and could disturb the processing. Could you check the results if you suppress the leap year variable. If the problem persists, could you send me your TSW+ spec file and the settings you use in JD+.

@luisjo819
Copy link
Author

luisjo819 commented Jun 27, 2019 via email

@Liedo
Copy link

Liedo commented Jun 28, 2019

Hola Luis José,

Thanks a lot for your explanations. If JDemetra+ finds significant calendar effects (related to Easter or Trading days), it is very likely that they exist in reality. The question is, why doesn't your TSW+ specification find them? We cannot get inside the TSW+ Fortran code to understand what happens, but we strongly suspect the problem occurs at the QR step: TSW+ probably fais to identify calendar effects because you are using two times the same regressor:

  • The option (2) RS4 you are using tests for calendar effects and in case they are significant, the sofware incorporates the corresponding calendar regressor in the model
  • The options (4-5-6) add calendar regressors using the information about Peruvian festivities avaiable in your input file feriados.xls
1) I enter the series PBI.xlsx as Input, and open Models ++. ITER = 2.
2) I put RS4 (by default) and in ARIMA MODEL I put LAM = 0.
3) In OTHERS I put IEAST = 1 with IDUR = 3.
4) I put IREG = 2, I put OK, and then in the following screen:
5) ISUERS = -1, NSER = 2, ILONG = 87, and Regeff = 2 for both variables.
6) Charge the feriados.xlsx in Regression and Ok (holidays and leap year).
7) I put RUN. (I attach the parameters obtained as model.txt).

In the case of JDemetra+, the algorithm realises that it's impossible to identify the coefficient associated to your calendar regressors (because they are identical). Thus, JDemetra+ eliminates one of them in order to circunvent the problem

To sum up:

  • If you eliminate the Easter regressor in JDemetra+ (Calendar / option = NONE) so that your results coincide with those of TSW+, you will not obtain a correct adjustment for calendar effects.
  • Your old procedures based on TSW+ use the option RS4 plus user suplied calendar regressors are likely to skip the calendar adjustment because of a problem at the QR step caused by perfect collinearity (i.e. redundant information). But in JDemetra+, the sofware knows you are adding redundant information, so it will simply ignore it, leading to an effective adjustment for calendar effects

@luisjo819
Copy link
Author

Thank you for your explanations. You were right that TSW+ doesnt recognize well significative calendar effects. I was able to identify it, and explain it in my job. Thank you very much, we are going to use JDemetra+ from now on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants