Skip to content
Prev 175655 / 398503 Next

How to generate natural cubic spline in R?

David Winsemius wrote:
It expands a predictor into the truncated power basis functions for the 
natural cubic spline.  This is an easier basis to use than the B-spline 
basis.  rcs calls the Hmisc function rcspline.eval which you may want to 
look at first.

Frank