Description Usage Arguments Value Examples
Construct Model Matrix
1 | modelmat(x, basis)
|
x |
A vector of context observations. |
basis |
A list of basis functions to expand each element of x. |
A matrix where each row is a basis expansion of a context observation.
1 2 3 | basis <- legendre_basis(5)
x <- runif(10,-1,1)
modelmat(x,basis) # A 10x6 matrix
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.