View source: R/ma.smooth.wge.R
ma.smooth.wge | R Documentation |
Given a time series in the vector x and order (either an odd or even integer) ma.smooth.wge computes a centered moving average smoother and optionally plots the data and smoothed data
ma.smooth.wge(x,order=3,plot=TRUE)
x |
Vector containing original realization |
order |
Order (odd or even integer) of moving average smoother |
plot |
If plot=TRUE then plots of the data and smoothed data are plotted |
x |
Original data |
smooth |
Data after application of centered average filter.l |
order |
Order (odd or even integer) of the smoother |
Wayne Woodward
"Practical Time Series Analysis with R" by Woodward, Sadler, and Robertson"
data(wtcrude)
sm=ma.smooth.wge(x=wtcrude,order=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.