-
Notifications
You must be signed in to change notification settings - Fork 9
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
set_tradingdays #76
Comments
Indeed: if in set_tradingdays option="None", leapyear effect won't be computed even if specified
|
To create the leap year regressor I would rather recommend using the |
Of course... My message was confusing (so I deleted it) |
What I explained yesterday, I did it this way. Could you confirm if I did it correctly?
|
We don't have your data nor the "spec" you start with so hard to confirm with certitude |
My defined specification is as follows: spec <- rjd3tramoseats::tramoseats_spec("rsa3"). In the code, I do not include the Easter effect or the trading days effect because, as I observed in the first code I provided, both effects are not significant. What I want to do is add the leap year effect as a regressor variable. My question is whether it has been correctly implemented, which can be verified in the second code I provided. |
It is correctly implemented |
I am working with a time series where the effect of leap years is significant, while the effects of working days and Easter do not show significance. My goal is to adjust the series considering only the effect of leap years, but I am unable to do so using the
set_tradingdays
function to account for only this effect. I am attaching the code to better illustrate my question.Coefficients
Estimate Std. Error T-stat Pr(>|t|)
phi(1) -0.52568 0.09371 -5.609 2.81e-07 ***
bphi(1) -0.66654 0.11538 -5.777 1.40e-07 ***
btheta(1) 0.31598 0.17155 1.842 0.0692 .
Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1
Regression model:
Estimate Std. Error T-stat Pr(>|t|)
td 1.923 3.103 0.620 0.5372
lp -31.916 15.636 -2.041 0.0446 *
easter -5.428 8.655 -0.627 0.5324
LS (2008-10-01) 284.009 62.544 4.541 1.98e-05 ***
TC (2009-01-01) 382.615 56.781 6.738 2.35e-09 ***
LS (2020-07-01) 360.652 59.882 6.023 5.13e-08 ***
TC (2021-10-01) -305.984 52.912 -5.783 1.41e-07 ***
Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1
Number of observations: 91, Number of effective observations: 90, Number of parameters: 11
Loglikelihood: -533.6932
Standard error of the regression (ML estimate): 88.62875
AIC: 1089.386, AICc: 1092.771, BIC: 1116.884
The text was updated successfully, but these errors were encountered: