expand.knots: Expands knots for appropriate number of knots in bsplines

Description Usage Arguments Value Author(s) See Also Examples

View source: R/orthogonalBsplines.R

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

1
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

SplineBasis, ~~~

Examples

1
2


orthogonalsplinebasis documentation built on May 20, 2017, 3:07 a.m.
Search within the orthogonalsplinebasis package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.