Skip to content
Prev 212111 / 398500 Next

Smoothing Spline Basis Matrix

Close, but not quite.  Your design matrix is:
H <- bs(X, knots=spl$fit$knot, intercept=TRUE)

So long as you have data in all of the inter-knot regions, you should be ok.

A good book to check out about this sort of thing is Ruppert, Wand and
Carroll's Semiparametric Regression book.  I can't recommend that book
highly enough.

Derek
pinkdd wrote: