smooth                  package:eda                  R Documentation

_M_e_d_i_a_n _S_m_o_o_t_h_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     This function applies Tukey's smoothing method 3RSR to `x'.

_U_s_a_g_e:

     smooth(x)

_A_r_g_u_m_e_n_t_s:

       x: a vector or time series

_V_a_l_u_e:

     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.

_N_o_t_e:

     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.

_R_e_f_e_r_e_n_c_e_s:

     Tukey, J. W. (1977). Exploratory Data Analysis, Reading
     Massachusetts: Addison-Wesley.

_S_e_e _A_l_s_o:

     `lowess'; `loess', `supsmu' and `smooth.spline' in package
     `modreg'.

_E_x_a_m_p_l_e_s:

     library(eda)
     data(presidents)
     presidents[is.na(presidents)] <- 0
     plot(presidents)
     lines(smooth(presidents))

