This function evaluates the splines basis functions. Unlike the
bSpline
in the splines2
package, this function
returns the value of a single spline basis, rather than a vector of
values for all the spline basis functions.
splinesBasis(x, knots, degree, intercept = TRUE, i,
boundary.knots = c(0, 1))
vector, the values at which to evaluate the basis function.
vector, the internal knots.
integer, the degree of the splines.
boolean, default set to TRUE
. This includes
an additional component to the basis splines so that the
splines are a partition of unity (i.e. the sum of all
components equal to 1).
integer, the basis component to be evaluated.
vector, default is c(0, 1)
.
scalar.