Rev 3865 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{poly}\title{Compute Orthogonal Polynomials}\usage{poly(x, degree=1)}\alias{poly}\arguments{\item{x}{a numeric vector at which to evaluate the polynomial}\item{degree}{the degree of the polynomial}}\description{Returns orthogonal polynomials of degree 1 to \code{degree} over thespecified set of points \code{x}. These are all orthogonal to theconstant polynomial of degree 0.}\value{A matrix with rows corresponding to points in \code{x} and columnscorresponding to the degree, with attributes \code{"degree"} specifyingthe degrees of the columns and \code{"coefs"} which contains thecentring and normalization constants used in constructing theorthogonal polynomials.}\author{B.D. Ripley}\note{This routine is intended for statistical purposes such as\code{contr.poly}: it does not attempt to orthogonalize tomachine accuracy.}\seealso{\code{\link{contr.poly}}}\examples{poly(1:10, 3)}\keyword{math}