Learn R Programming

tspredit (version 1.2.747)

ts_fil_ses: Simple Exponential Smoothing

Description

Exponential smoothing focused on the level component, with optional extensions to trend/seasonality via Holt–Winters variants.

Usage

ts_fil_ses(gamma = FALSE)

Value

A ts_fil_ses object.

Arguments

gamma

If TRUE, enables the gamma seasonality component.

References

  • R. G. Brown (1959). Statistical Forecasting for Inventory Control.

Examples

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

# filter
filter <- ts_fil_ses()
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