M4_benchmarks: M4_benchmarks

Description Usage Arguments Value Examples

View source: R/benchmarks.R

Description

Function producing the univariate forecasts employing all the benchmark methods of the M4 competition. Adapted from https://github.com/M4Competition/M4-methods/blob/master/Benchmarks%20and%20Evaluation.R

Usage

1
M4_benchmarks(input, fh)

Arguments

input
  • Input time series (numeric vector)

fh
  • Forecasting horizon (numeric scalar)

Value

List containing:

Examples

1
2
3
4
5
x <- AirPassengers
splitting_point <- round(2*length(x)/3)
x_train <- x[1:splitting_point]
h <- 5
univariate_results <- M4_benchmarks(x_train,h)

jdestefani/MM4Benchmark documentation built on Dec. 20, 2021, 10:05 p.m.