Constructs B-splines and its integral, monotone splines
(M-splines) and its integral (I-splines), convex splines (C-splines),
and their derivatives of given order. Piecewise constant basis is
allowed for B-splines and M-splines. See
De Boor (1978)
The R package splines2 is a complementary package on splines providing functions constructing B-splines, monotone splines (M-splines) and its integral (I-splines), convex splines (C-splines), and integral of B-splines. Piecewise constant basis of degree zero is allowed for B-spline and M-spline basis.
You can install the released version from CRAN.
The latest version of package is under development at GitHub in branch 'dev'. If it is able to pass the building check by Travis CI, you may consider installing it with the help of devtools by
devtools::install_github("wenjie2wang/splines2", ref = "dev")
or cloning this reposotory to local and install by makefile as follows:
git clonecd splines2make install
Package vignettes provides a quick demonstration for the basic usage of main functions.
Package help manual is also available for more technical details.
The R package splines2 is free software: You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version (at your option). See the GNU General Public License for details.
The R package splines2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bSpline generating B-spline basis allowing zero degree or
piecewise constant basis based on function
bs in package splines.
bSpline to allow M-splines of degree zero.
cSpline constructing convex spline (C-spline) basis.
predict methods for
bSpline2 object and
cSpline object generated
iSplineto construct I-spline basis directly from B-spline basis instead of M-spline basis.