R: splines2: Regression Spline Functions and Classes

splines2 {splines2} | R Documentation

## splines2: Regression Spline Functions and Classes

### Description

This package provides functions to construct basis matrix of

- B-splines

- M-splines

- I-splines

- convex splines (C-splines)

- generalized Bernstein polynomials

- their integrals (except C-splines) and derivatives of given order by close-form recursive formulas

### Details

In addition to the R interface, it also provides a C++ header-only library integrated with Rcpp, which allows construction of spline basis matrix directly in C++ with the help of Rcpp and RcppArmadillo. So it can also be treated as one of the Rcpp* packages. A toy example package that uses the C++ interface is available at <https://github.com/wenjie2wang/example-pkg-Rcpp-splines2>.

It is named after the splines package: "Regression Spline Functions and Classes". The tailing number two is simply "too" (and by no means for the generation two).

[Package splines2 version 0.3.1 Index]