The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The goal of tsfknn is to forecast time series using KNN regression
You can install tsfknn from github with:
# install.packages("devtools")
devtools::install_github("franciscomartinezdelrio/tsfknn")This is a basic example which shows you how to forecast with tsfknn:
library(tsfknn)
pred <- knn_forecasting(USAccDeaths, h = 12, k = 3)
pred$prediction # To see a time series with the forecasts
plot(pred) # To see a plot with the forecast
library(ggplot2)
autoplot(pred, highlight = "neighbors") # To see the nearest neighborsThese binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.