The R Journal: accepted article

This article will be copy edited and may be changed before publication.

Time Series Forecasting with KNN in R: the tsfknn Package PDF download
Francisco Martínez, María P. Frías, Francisco Charte and Antonio J. Rivera

Abstract In this paper the tsfknn package for time series forecasting using k-nearest neighbor regres sion is described. This package allows users to specify a KNN model and to generate its forecasts. The user can choose among different multi-step ahead strategies and among different functions to aggregate the targets of the nearest neighbors. It is also possible to assess the forecast accuracy of the KNN model.

Received: 2018-05-29; online 2019-07-30, supplementary material, (718 bytes)
CRAN packages: forecast, caret, nnfor, tsfknn, forecastHybrid, GMDH, NTS, tsDyn, nnet, neuralnet
CRAN Task Views implied by cited CRAN packages: TimeSeries, Econometrics, Finance, MachineLearning, Environmetrics, HighPerformanceComputing, MissingData, Multivariate, SocialSciences


CC BY 4.0
This article and supplementary materials are licensed under a Creative Commons Attribution 4.0 International license.

@article{RJ-2019-004,
  author = {Francisco Martínez and María P. Frías and Francisco Charte
          and Antonio J. Rivera},
  title = {{Time Series Forecasting with KNN in R: the tsfknn Package}},
  year = {2019},
  journal = {{The R Journal}},
  doi = {10.32614/RJ-2019-004},
  url = {https://journal.r-project.org/archive/2019/RJ-2019-004/index.html}
}