Find the full list of basis functions up to a particular degree

basis_of_degree(x, degree)



An input matrix containing observations and covariates following standard conventions in problems of statistical learning.


The highest order of interaction terms for which the basis functions ought to be generated. The default (NULL) corresponds to generating basis functions for the full dimensionality of the input matrix.