splinebasis | R Documentation |
For each column of an input matrix, elements which are less than the median of that column are set to 0, leaving the rest of the elements unchanged.
splinebasis(X)
X |
The extra covariates, a n x K matrix. No constant included. |
H A n x K matrix. All elements of the X that are less than the median of their corresponding columns are set to 0, leaving the rest unchanged.
library(pracma)
X <- rand(4,4)
H <- splinebasis(X = X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.