Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

expand.knots

Expands knots for appropriate number of knots in bsplines


Description

This function is for conveinience of specifying knots for B-splines. Since the user usually only want to specify the interval that they are interested in the end knots are usually duplicated. This function interprets the first and last knots as the end points and duplicates them.

Usage

expand.knots(interior, order = 4)

Arguments

interior

The knots including all interior and endpoitn knots

order

the order of the splines that the knots are to be used with. Defaults to 4, being cubic splines

Value

A vector of knots with the order specified as an attribute

Author(s)

Andrew Redd

See Also

Examples

(knots<-expand.knots(1:10))
plot(OBasis(knots))

orthogonalsplinebasis

Orthogonal B-Spline Basis Functions

v0.1.6
GPL (>= 2)
Authors
Andrew Redd
Initial release
2015-03-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.