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
References
"Time Series for Data Science" by Woodward, Sadler, and Robertson
Examples
Run this codedata(wtcrude2020)
expsmooth.wge(wtcrude2020)
Run the code above in your browser using DataLab