robjhyndman / forecast

Forecasting Functions for Time Series and Linear Models
http://pkg.robjhyndman.com/forecast
1.13k stars 342 forks source link

TBATS error with timeseries of zeros #109

Closed harmbuisman closed 9 years ago

harmbuisman commented 9 years ago

TBATS gives an error with the simple sequence of zeros.

Repro: {library(forecast);tbats( rep(0,10) )}

Result: Error in checkForRemoteErrors(val) : 3 nodes produced errors; first error: initial value in 'vmmin' is not finite

Version info: This is forecast 5.9 R version 3.1.3 (2015-03-09)

tbats commented 9 years ago

Having same issue. Any fixes? Or temporary solutions?

robjhyndman commented 9 years ago

Fixed in https://github.com/robjhyndman/forecast/commit/ada6da10bb993d78e6639fd63db92a8698c6f0c7