home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / lowess < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.7 KB  |  50 lines

  1.     
  2.     _S_c_a_t_t_e_r _P_l_o_t _S_m_o_o_t_h_i_n_g
  3.     
  4.          lowess(x, y, f=2/3, iter=3, delta=.01*diff(range(x)))
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.              x,y : vectors giving the coordinates of the points
  9.                    in the scatter plot.  Alternatively a single
  10.                    plotting structure can be specified.
  11.     
  12.                f : the smoother span.  This gives the proportion
  13.                    of points in the plot which influence the
  14.                    smooth at each value.  Larger values give
  15.                    more smoothness.
  16.     
  17.             iter : the number of robustifying iterations which
  18.                    should be performed.  Using smaller values of
  19.                    iter will make lowess run faster.
  20.     
  21.            delta : values of x which lie within delta of each
  22.                    other replaced by a single value in the out-
  23.                    put from lowess.
  24.     
  25.     _D_e_s_c_r_i_p_t_i_o_n:
  26.     
  27.          This function performs the computations for the LOWESS
  28.          smoother (see the reference below).  lowess returns a
  29.          list containing components x and y which give the coor-
  30.          dinates of the smooth.  The smooth should be added to a
  31.          plot of the original points with the function lines.
  32.     
  33.     _R_e_f_e_r_e_n_c_e_s:
  34.     
  35.          Cleveland, W. S. (1979).  Robust locally weighted
  36.          regression and smoothing scatterplots.  J. Amer. Sta-
  37.          tist. Assoc. 74, 829-836.
  38.     
  39.          Cleveland, W. S. (1981).  LOWESS: A program for smooth-
  40.          ing scatterplots by robust locally weighted regression.
  41.          The American Statistician, 35, 54.
  42.     
  43.     _E_x_a_m_p_l_e_s:
  44.     
  45.          data(cars)
  46.          plot(cars)
  47.          lines(lowess(cars))
  48.          lines(lowess(cars,f=.2), col='blue')
  49.     
  50.