wenjie2wang / splines2

Regression Spline Functions and Classes
https://wwenjie.org/splines2
GNU General Public License v3.0
42 stars 3 forks source link

Natural cubic splines #3

Closed fgoerlich closed 3 years ago

fgoerlich commented 3 years ago

Is there in splines2 a function to calculate natural cubic splines, like the ns() function in splines? I haven´t found it. Thanks,

wenjie2wang commented 3 years ago

No, the function that constructs natural cubic splines is currently not available in the splines2 package. However, it has been also of our interest. An equivalent but slightly different implementation is under development and will probably be available for next release of the package.

wenjie2wang commented 3 years ago

@fgoerlich, the splines2 v0.4.1 is available on CRAN. The function splines2::naturalSpline() provides an implementation of natural cubic splines that may be of your interest.