enumerate_edge_basis | R Documentation |
For degrees of smoothness greater than 1, we must generate the lower order smoothness basis functions using the knot points at the "edge" of the hypercube. For example, consider f(x) = x^2 + x, which is second-order smooth, but will not be generated by purely quadratic basis functions. We also need to include the y = x function (which corresponds to first-order HAL basis functions at the left most value/edge of x).
enumerate_edge_basis(
x,
max_degree = 3,
smoothness_orders = rep(0, ncol(x)),
include_zero_order = FALSE,
include_lower_order = FALSE
)
x |
An input |
max_degree |
The highest order of interaction terms for which the basis
functions ought to be generated. The default ( |
smoothness_orders |
An integer vector of length |
include_zero_order |
A |
include_lower_order |
A |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.