\Header{poly}{Compute Orthogonal Polynomials}
\keyword{math}{poly}
\begin{Description}\relax
Returns orthogonal polynomials of degree 1 to \code{degree} over the
specified set of points \code{x}. These are all orthogonal to the
constant polynomial of degree 0.\end{Description}
\begin{Usage}
\begin{verbatim}
poly(x, degree=1)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a numeric vector at which to evaluate the polynomial
\item[\code{degree}] the degree of the polynomial
\end{ldescription}
\end{Arguments}
\begin{Value}
A matrix with rows corresponding to points in \code{x} and columns
corresponding to the degree, with attributes \code{"degree"} specifying
the degrees of the columns and \code{"coefs"} which contains the
centring and normalization constants used in constructing the
orthogonal polynomials.\end{Value}
\begin{Note}\relax
This routine is intended for statistical purposes such as
\code{contr.poly}: it does not attempt to orthogonalize to
machine accuracy.\end{Note}
\begin{Author}\relax
B.D. Ripley\end{Author}
\begin{SeeAlso}\relax
\code{\Link{contr.poly}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
poly(1:10, 3)
\end{ExampleCode}
\end{Examples}

