naive_seasonal: naive_seasonal

Description Usage Arguments Value

View source: R/benchmarks.R

Description

Auxiliary function for the seasonal naive forecasting method. From https://github.com/M4Competition/M4-methods/blob/master/Benchmarks%20and%20Evaluation.R

Usage

1
naive_seasonal(input, fh, level = c(80, 95))

Arguments

input
  • Input time series (numeric vector)

fh
  • Forecasting horizon (numeric)

level
  • Numeric vector (length 2) containing the upper and lower bound for interval forecasting

Value

h-step forecast for the seasonal naive method (numeric vector - length h)


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