-
Notifications
You must be signed in to change notification settings - Fork 65
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
ARIMA will not produce a weekly forecast when week_start != 1 #397
Comments
Possibly related? tidyverts/tsibble#299 |
I looked into this a little bit, and the problem comes when the arima model object is created. It has a $tsp which has a $range, where the week_start hasn't been propagated. So the problem appears to be in whatever happens inside range() when a vector of yearweeks are given.
|
I think range just does something like The code that makes the range at L402 of arima.R needs to be aware of yearweek objects. The right thing might be to make a range() that knows how to operate properly on yearweeks. |
Putting this in my code appears to paper over the problem:
I don't know how to write that code properly or I'd submit a PR. |
Thanks for your careful investigation, resolving tidyverts/tsibble#300 should fix this issue. |
See reprex below. If week_start is set to 1 (the default) everything works as expected.
The text was updated successfully, but these errors were encountered: