Skip to main content
Log in

predtoolsTS: R package for streamlining time series forecasting

  • Regular Paper
  • Published:
Progress in Artificial Intelligence Aims and scope Submit manuscript

Abstract

Time series forecasting is a field of interest in many areas. Classically, statistical methods have been used to address this problem. In recent years, machine learning (ML) algorithms have been also applied with satisfactory results. However, ML software packages are not skilled to deal with raw sequences of temporal data, and therefore, it is necessary to transform these time series. This paper presents predtoolsTS, an R package that provides a uniform interface for applying both statistical and ML methods to time series forecasting. predtoolsTS comprises four modules: preprocessing, modeling, prediction and postprocessing, in order to deal with the whole process of time series forecasting.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

Notes

  1. https://cran.r-project.org/web/views/TimeSeries.html.

  2. The predtoolsTS package also relies on basic R functions and regression models in the caret package to accomplish its work.

  3. Standard R methods, such as summary() and plot(), can be used with this object class.

References

  1. Barboza, F., Kimura, H., Altman, E.: Machine learning models and bankruptcy prediction. Expert Syst. Appl. 83, 405–417 (2017)

    Article  Google Scholar 

  2. Bollerslev, T.: Generalized autoregressive conditional heteroskedasticity. J. Econom. 31(3), 307–327 (1986)

    Article  MathSciNet  Google Scholar 

  3. Box, G.E.P., Jenkins, G.M., Reinsel, G.C.: Time Series Analysis: Forecasting and Control, 4th edn. Wiley, Hoboken (2008)

    Book  Google Scholar 

  4. Brockwell, P.J., Davis, R.A., Calder, M.V.: Introduction to Time Series and Forecasting, vol. 2. Springer, Berlin (2002)

    Book  Google Scholar 

  5. Das, S.: Time Series Analysis. Princeton University Press, Princeton (1994)

    Google Scholar 

  6. De Gooijer, J.G., Hyndman, R.J.: 25 years of time series forecasting. Int. J. Forecast. 22(3), 443–473 (2006)

    Article  Google Scholar 

  7. Deb, C., Zhang, F., Yang, J., Lee, S.E., Shah, K.W.: A review on time series forecasting techniques for building energy consumption. Renew. Sustain. Energy Rev. 74, 902–924 (2017)

    Article  Google Scholar 

  8. Doukhan, P.: Stochastic Models for Time Series, vol. 80. Springer, Berlin (2018)

    Book  Google Scholar 

  9. Fiorucci, J.A., Louzada, F., Yiqi, B., Fiorucci, M.J.A.: Package ‘forectheta’ (2016)

  10. Hyndman, R.J., Khandakar, Y.: Automatic time series forecasting: the forecast package for R. J. Stat. Softw. 26(3), 1–22 (2008)

    Google Scholar 

  11. Kourentzes, N., Petropoulos, F., Trapero, J.R.: Improving forecasting by estimating time series structural components across multiple frequencies. Int. J. Forecast. 30(2), 593 (2014)

    Article  Google Scholar 

  12. Kuhn, M., et al.: Building predictive models in r using the caret package. J. Stat. Softw. 28(5), 1–26 (2008)

    Article  Google Scholar 

  13. McLeod, A.I., Zhang, Y.: Faster arma maximum likelihood estimation. Comput. Stat. Data Anal. 52(4), 2166–2176 (2007)

    Article  MathSciNet  Google Scholar 

  14. McLeod, A.I., Yu, H., Mahdi, E.: Time series analysis with r. In: Subba Rao, T., Subba Rao, S., Rao, C.R. (eds.) Handbook of Statistics, vol. 30, pp. 661–712. Elsevier, Amsterdam (2012)

    Google Scholar 

  15. Naing, W.Y.N., Htike, Z.Z.: State of the art machine learning techniques for time series forecasting: a survey. Adv. Sci. Lett. 21(11), 3574–3576 (2015)

    Article  Google Scholar 

  16. Ryan, J.A., Ulrich, J.M.: xts: Extensible Time Series. R package version 0.8-2 (2011)

  17. Tashman, L.J.: Out-of-sample tests of forecasting accuracy: an analysis and review. Int. J. Forecast. 16(4), 437–450 (2000)

    Article  Google Scholar 

  18. Trapletti, A., Hornik, K.: tseries: Time Series Analysis and Computational Finance (2018). R package version 0.10-46

  19. Weiss, C.E., Raviv, E., Roetzer, G.: Forecast combinations in r using the forecastcomb package. R J. 10(2), 262–281 (2018)

    Article  Google Scholar 

  20. Zecchin, C., Facchinetti, A., Sparacino, G., Cobelli, C.: Jump neural network for online short-time prediction of blood glucose from continuous monitoring sensors and meal information. Comput. Methods Progr. Biomed. 113(1), 144–152 (2014)

    Article  Google Scholar 

  21. Zeileis, A., Grothendieck, G.: Zoo: S3 infrastructure for regular and irregular time series. J. Stat. Softw. 14(6), 1–27 (2005)

    Article  Google Scholar 

Download references

Acknowledgements

This work was partially supported by the project TIN2015-68854-R (FEDER Founds) of the Spanish Ministry of Economy and Competitiveness.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Francisco Charte.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Charte, F., Vico, A., Pérez-Godoy, M.D. et al. predtoolsTS: R package for streamlining time series forecasting. Prog Artif Intell 8, 505–510 (2019). https://doi.org/10.1007/s13748-019-00193-z

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s13748-019-00193-z

Keywords

Navigation