Learn R Programming

tspredit (version 1.2.767)

ts_fil_qes: Quadratic Exponential Smoothing

Description

Double/triple exponential smoothing capturing level, trend, and optionally seasonality components.

Usage

ts_fil_qes(gamma = FALSE)

Value

A ts_fil_qes object.

Arguments

gamma

If TRUE, enables the gamma seasonality component.

References

  • P. R. Winters (1960). Forecasting sales by exponentially weighted moving averages. Management Science.

Examples

Run this code
# time series with noise
library(daltoolbox)
data(tsd)
tsd$y[9] <- 2*tsd$y[9]

# filter
filter <- ts_fil_qes()
filter <- fit(filter, tsd$y)
y <- transform(filter, tsd$y)

# plot
plot_ts_pred(y=tsd$y, yadj=y)

Run the code above in your browser using DataLab