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.

_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))

