Compute Orthogonal Polynomials

Usage

poly(x, degree=1)

Arguments

x a numeric vector at which to evaluate the polynomial
degree the degree of the polynomial

Description

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.

Value

A matrix with rows corresponding to points in x and columns corresponding to the degree, with attribute "degree" specifying the degrees of the columns.

Author(s)

B.D. Ripley

See Also

contr.poly

Examples

poly(1:10, 3)


[Package Contents]