splines
This package provides functions for working with
regression splines using the B-spline basis, bs
, and the natural cubic spline basis,
ns
.
Functions
Function | Description |
---|---|
as.polySpline | Creates the piecewise polynomial representation of a spline object. |
asVector | This is a generic function. Methods for this function coerce objects of given classes to vectors. |
backSpline | Creates a monotone inverse of a monotone natural spline. |
bs | Generates the B-spline basis matrix for a polynomial spline. |
interpSpline | Creates an interpolation spline, either from x and y vectors or from a
formula/data.frame combination. |
ns | Generates the B-spline basis matrix for a natural cubic spline. |
periodicSpline | Creates a periodic interpolation spline, either from
x and y vectors or from a
formula/data.frame combination. |
polySpline | Creates the piecewise polynomial representation of a spline object. |
spline.des | Evaluates the design matrix for the B-splines defined
by knots at the values in
x . |
splineDesign | Evaluates the design matrix for the B-splines defined
by knots at the values in
x . |
splineKnots | Returns the knot vector corresponding to a spline object. |
splineOrder | Returns the order of a spline object. |
xyVector | Creates an object to represent a set of x-y pairs. |
Get R in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.