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

basis_of_degree(x, degree)

Arguments

x

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

degree

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.