Learn R Programming

tswge (version 2.1.0)

expsmooth.wge: Exponential Smoothing

Description

Performs exponential smoothing on the data in vector x

Usage

expsmooth.wge(x,alpha=NULL,n.ahead=0,plot=TRUE)

Value

alpha

alpha value used in the smoothing

u

forecasts

Arguments

x

Vector containing realization

alpha

Alpha value

n.ahead

Number of steps ahead to forecast

plot

If plot=TRUE then plots of the data along with forecasts

Author

Wayne Woodward

References

"Time Series for Data Science" by Woodward, Sadler, and Robertson

Examples

Run this code
data(wtcrude2020)
expsmooth.wge(wtcrude2020)

Run the code above in your browser using DataLab