

   GGeett aanndd SSeett CCoonnttrraasstt MMaattrriicceess

        contrasts(x)
        contrasts(x) <- ctr

   AArrgguummeennttss::

          x: a factor.

        ctr: either a matrix whose columns give coefficients
             for contrasts in the levels of `x', or the
             (quoted) name of a function which computes such
             matrices.

   VVaalluuee::

        These functions are used to set and view the contrasts
        associated with a factor.  If contrasts are not set for
        a factor the default functions named the system options
        are used.

   SSeeee AAllssoo::

        `contr.helmert', `contr.poly', `contr.sum',
        `contr.treatment', `glm', `lm'.

