Description Usage Arguments Value Examples
This function is just a wrapper of two functions from the 'orthopolynom' R package. The Legendre poloynomial basis is orthogonal on [-1,1], hence context observations should be mapped to this domain.
1 |
J |
The number of basis functions to generate (NOT INCLUDING THE INTERCEPT). |
A list of functions. If J = 5, the list will have a length of 6 due to the intercept.
1 2 | J <- 5
legendre_basis(J) # output will be length 6 and include the intercept.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.