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 / update.model < prev    next >
Encoding:
Text File  |  1997-04-23  |  885 b   |  32 lines

  1.     
  2.     _M_o_d_e_l _U_p_d_a_t_i_n_g
  3.     
  4.          update.model(old, new)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.              old : a model formula to be updated.
  9.     
  10.              new : a formula giving a template which specifies
  11.                    how to update.
  12.     
  13.     _D_e_s_c_r_i_p_t_i_o_n:
  14.     
  15.          update.model is used to update model formulae.  This
  16.          typically involves adding or dropping terms, but
  17.          updates can be more general.
  18.     
  19.          The function works by first identifying the left-hand
  20.          side and right-hand side of the old formula.  It then
  21.          examines the new formula and substitutes the lhs of the
  22.          old formula for any occurence of "." on the left of
  23.          new, and substitutes the rhs of the old formula for any
  24.          occurence of "." on the right of new.
  25.     
  26.          The updated formula is returned.
  27.     
  28.     _S_e_e _A_l_s_o:
  29.     
  30.          terms, model.matrix.
  31.     
  32.