valid_md_snaive: Check seasonal-naive model validity

Description Usage Arguments Value

View source: R/arg_checks.R

Description

This function ensures that the data meets model requirements

Usage

1
valid_md_snaive(ts_data, fc_horizon)

Arguments

ts_data

A univariate 'ts' or 'xts' object

fc_horizon

An integer, the forecasting horizon (i.e. the number of periods to forecast)

Value

A boolean, TRUE if the forecasting is possible.


xavierkamp/tsForecastR documentation built on Feb. 1, 2020, 10:16 a.m.