poly2form | R Documentation |
This function takes a list of objects having class polynomial
, evaluates each polynomial as a function of x
, then returns the results in a matrix.
poly2form(poly.out, x)
poly.out |
A list whose objects are of class |
x |
A vector of values for which each polynomial in |
poly.out
returns a matrix whose columns are the evaluation of each polynomial in poly.out
using x
.
Young, D. S. (2017), Handbook of Regression Methods, CRC Press.
legendre.polynomials
## Evaluating the order 5 Legendre polynomials.
require(orthopolynom)
px <- legendre.polynomials(n = 5, normalized = FALSE)
lx <- poly2form(poly.out = px, x = 1:10)
lx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.