getBbasis: getBbasis function

Description Usage Arguments Value

Description

A function returning the piecewise polynomial coefficients for a B-spline basis function i.e. the basis functions.

Usage

1
getBbasis(x, knots, degree)

Arguments

x

a vector of data

knots

a vector of knots in ascending order. The first and last knots must be respectively the minimum and maximum of x.

degree

the degree of the spline

Value

the knots and the piecewise polynomial coefficients for a B-spline basis function i.e. the basis functions.


bentaylor1/spatsurv documentation built on May 12, 2019, 3:02 p.m.