Description Usage Arguments Value Note Author(s) References See Also
Returns or evaluates the second derivatives of orthogonal polynomials of degree 1 to degree
over the specified set of points x
: the polynomials are all orthogonal to the constant polynomial of degree 0. Alternatively, evaluates the second derivatives of raw polynomials.
1 |
x |
a numeric vector at which to evaluate the polynomial. |
... |
further vectors. |
degree |
the degree of the polynomial. Must be less than the number of unique points if |
coefs |
for prediction, coefficients from a previous fit. |
raw |
if true, use raw and not orthogonal polynomials. |
A matrix with rows corresponding to points in x
and columns corresponding to the degree, with attributes "degree"
specifying the degrees of the columns (prior to taking the derivatives) and (unless raw = TRUE
) "coefs"
which contains the centering and normalization constants used in constructing the orthogonal polynomials. The matrix has been given class c("poly","matrix")
.
Both the code and the description of ddpoly
borrow heavily from the poly
command in the stats
package.
Michael Lipsitz, Alexandre Belloni, Victor Chernozhukov, Ivan Fernandez-Val
Chambers, J.M. and Hastie, T.J. (1992) Statistical Models in S. Wadsworth & Brooks/Cole. Kennedy, W.J. Jr and Gentle, J.E. (1980) Statistical Computing. Marcel Dekker.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.