smooth {eda} | R Documentation |
This function applies Tukey's smoothing method 3RSR
to x
.
smooth(x)
x |
a vector or time series |
A vector or time series containing the smoothed values. Note that there are other smoothing methods which provide rather better results. This one was designed for hand calculations.
3R stands for Repeated running median
s
of 3.
S and S-PLUS use a different Tukey smoother in smooth(*)
.
The implementation does not really implement Tukey's definitions, since it uses an incorrect version of the end-point rule repeatedly instead of once. This might be corrected in a future version of R.
Tukey, J. W. (1977). Exploratory Data Analysis, Reading Massachusetts: Addison-Wesley.
lowess
; loess
,
supsmu
and
smooth.spline
in package `modreg'.
library(eda) data(presidents) presidents[is.na(presidents)] <- 0 plot(presidents) lines(smooth(presidents))