Raw File
Tip revision: c1cb69c3b53e5f3899ca6162f495a1707583bfa0 authored by Francisco Martinez on 04 September 2023, 08:40:02 UTC
version 0.5.2
Tip revision: c1cb69c
# tsfknn

The goal of tsfknn is to forecast time series using KNN regression

## Installation

You can install tsfknn from github with:

``` r
# install.packages("devtools")

## Example

This is a basic example which shows you how to forecast with tsfknn:

``` r
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
autoplot(pred, highlight = "neighbors")  # To see the nearest neighbors
back to top