poly.wrap: Orthogonal Polynomial Wrapper

Description Usage Arguments Value Author(s) See Also

Description

A wrapper for poly, dpoly, and ddpoly.

Usage

1
poly.wrap(x, degree = 1, coefs = NULL, nderivs = 1, raw = FALSE)

Arguments

x

a numeric vector at which to evaluate the polynomial. x can also be a matrix. Missing values are not allowed in x.

degree

the degree of the polynomial. Must be less than the number of unique points if raw = TRUE.

coefs

for prediction, coefficients from a previous fit.

nderivs

allowable values are 0, 1, and 2. If nderivs = 0, all other arguments are passed to poly. If nderivs = 1, all other arguments are passed to dpoly. If nderivs = 2, all other arguments are passed to ddpoly.

raw

if true, use raw and not orthogonal polynomials.

Value

poly.wrap returns the value returned by poly, dpoly, or ddpoly, depending on the value of nderivs.

Author(s)

Michael Lipsitz, Alexandre Belloni, Victor Chernozhukov, Ivan Fernandez-Val

See Also

poly, dpoly, ddpoly


quantreg.nonpar documentation built on May 2, 2019, 5:40 a.m.