

   poly {base}                                  R Documentation

   CCoommppuuttee OOrrtthhooggoonnaall PPoollyynnoommiiaallss

   DDeessccrriippttiioonn::

        Returns orthogonal polynomials of degree 1 to `degree'
        over the specified set of points `x'. These are all
        orthogonal to the constant polynomial of degree 0.

   UUssaaggee::

        poly(x, degree=1)

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

          x: a numeric vector at which to evaluate the polyno-
             mial

     degree: the degree of the polynomial

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

        A matrix with rows corresponding to points in `x' and
        columns corresponding to the degree, with attributes
        `"degree"' specifying the degrees of the columns and
        `"coefs"' which contains the centring and normalization
        constants used in constructing the orthogonal polynomi-
        als.

   NNoottee::

        This routine is intended for statistical purposes such
        as `contr.poly': it does not attempt to orthogonalize
        to machine accuracy.

   AAuutthhoorr((ss))::

        B.D. Ripley

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

        `contr.poly'

   EExxaammpplleess::

        poly(1:10, 3)

