sts_ts: Structural time series model

Description Usage Arguments Value

View source: R/forecasting-sts.R

Description

Fit a time series model using StructTS and make forecasts.

Usage

1
sts_ts(timeseries, num_ahead = 5, level = 95, frequency = 1)

Arguments

timeseries

the time series to forecast

num_ahead

the number of points at the end of the time series to forecast

level

Confidence level for prediction intervals.

frequency

the number of observations per unit of time.

Value

a data.frame of the mean forecasts, the observed values, and the lower and upper CI levels (if an error occurs, then just NA values)


ha0ye/MATSS-forecasting documentation built on Nov. 28, 2020, 10:16 a.m.