Bfct: power basis functions of a spline of given degree

Description Usage Arguments Value Examples

View source: R/ods-PLM.R

Description

Bfct returns the power basis functions of a spline of given degree.

Usage

1
Bfct(x, degree, knots, der)

Arguments

x

n by 1 matrix of the independent variable

degree

the order of spline

knots

the knots location

der

the der-order derivative. The default is 0

Value

n by (1+degree+nknots) matrix corresponding to the truncated power spline basis with knots and specified degree.

Examples

1
2
3
4
5
6
7
library(ODS)

x <- matrix(c(1,2,3,4,5),ncol=1)
degree <- 2
knots <- c(1,3,4)

Bfct(x, degree, knots)

ODS documentation built on May 1, 2019, 8:45 p.m.

Related to Bfct in ODS...