| B_basis | R Documentation |
Quadratic B-spline basis on equally spaced knots (supplement §S.1), evaluated
on a grid. Points outside [min(knots), max(knots)] get a row of zeros.
B_basis(xgrid, knots)
xgrid |
grid where we want to evaluate the spline functions (vector of length n) |
knots |
vector of equally spaced knots for the splines (vector of length K) |
n x (K+1) matrix with the value of each basis function on xgrid.
At a knot, exactly two adjacent basis functions are non-zero, both equal to 1/2.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.