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 / mad < prev    next >
Encoding:
Text File  |  1997-04-23  |  563 b   |  17 lines

  1.     
  2.     _M_e_d_i_a_n _A_b_s_o_l_u_t_e _D_e_v_i_a_t_i_o_n
  3.     
  4.          mad(x, center, constant=1.4826, na.rm=FALSE)
  5.     
  6.     _D_e_s_c_r_i_p_t_i_o_n:
  7.     
  8.          mad provides a scale estimate based on the median abso-
  9.          lute deviation.  The actual value calculated is con-
  10.          stant * (median(abs(x - center))) with the default
  11.          value of center being median(x).
  12.     
  13.          If na.rm is TRUE then NA values are stripped from x
  14.          before computation takes place.  If this is not done
  15.          then an NA value in x will cause mad to return NA.
  16.     
  17.