This function computes a change-of-basis matrix that converts from the truncated power basis to the B-spline basis. It is used by `coef.freekt`

and should not be called directly by the user.

1 | ```
chgbasismat(knot, ord)
``` |

`knot` |
The vector of knots. The first and last knots are repeated |

`ord` |
The order of the spline, which is one more than the degree. |

The change-of-basis matrix that converts from the truncated power basis to the B-spline basis.

Steven Spiriti

Smith, P. (1982), "Hypothesis Testing B-Spline Regression," *Communications in Statistics, Series B*, 11, 143-157.

Spiriti, S., Eubank, R., Smith, P., Young, D., "Knot Selection for Least-Squares and Penalized Splines," *Journal of Statistical Computation and Simulation*, in press.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.