This function generates two new cubic basis functions from a variable and a knot previously created during MARS algorithm.
CreateCubicBF(data, xi, knt, B, side)Matrix of basis functions updated with the new basis functions.
data.frame or matrix containing the variables in
the model.
Variable index of the new basis function(s).
Knots for creating the new basis function(s).
Matrix of basis functions.
Side of the basis function.