poly.wrap {quantreg.nonpar} | R Documentation |
Orthogonal Polynomial Wrapper
Description
A wrapper for poly
, dpoly
, and ddpoly
.
Usage
poly.wrap(x, degree = 1, coefs = NULL, nderivs = 1, raw = FALSE)
Arguments
x |
a numeric vector at which to evaluate the polynomial. |
degree |
the degree of the polynomial. Must be less than the number of unique points if |
coefs |
for prediction, coefficients from a previous fit. |
nderivs |
allowable values are 0, 1, and 2. If |
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
[Package quantreg.nonpar version 1.0 Index]