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 / contrast < prev    next >
Encoding:
Text File  |  1997-04-23  |  824 b   |  26 lines

  1.     
  2.     _C_o_n_t_r_a_s_t _M_a_t_r_i_c_e_s
  3.     
  4.          contr.helmert(n, contrasts=TRUE)
  5.          contr.poly(n, contrasts=TRUE)
  6.          contr.sum(n, contrasts=TRUE)
  7.          contr.treatment(n, contrasts=TRUE)
  8.     
  9.     _V_a_l_u_e:
  10.     
  11.          A matrix with n rows and k columns, with k=n-1 if con-
  12.          trasts is TRUE and k=n if contrasts is FALSE.
  13.     
  14.          These functions are used for creating contrast matrices
  15.          for use in fitting analysis of variance and regression
  16.          models.  The columns of the resulting matrices contain
  17.          contrasts which can be used for coding a factor with n
  18.          levels.  The returned value contains the computed con-
  19.          trasts.  If the argument contrasts is FALSE then an
  20.          additional column of ones is prepended to the matrix.
  21.     
  22.     _S_e_e _A_l_s_o:
  23.     
  24.          contrasts, glm, lm.
  25.     
  26.