bbase {utilityFunctionTools}R Documentation

Constructs a B-spline basis of degree 'deg' (Code by Paul Eilers, Package JOPS, http://statweb.lsu.edu/faculty/marx/JOPS_0.1.0.tar.gz).

Description

Constructs a B-spline basis of degree 'deg' (Code by Paul Eilers, Package JOPS, http://statweb.lsu.edu/faculty/marx/JOPS_0.1.0.tar.gz).

Usage

bbase(x, xl = min(x), xr = max(x), ndx = 20, deg = 6)

Arguments

x

values for the x axis.

xl

minimum value, default is the minimum value of the x-values.

xr

maximum value, default is maximum value of the x-values.

ndx

number of intervals to partition the distance between xl and xr.

deg

degree of the B-spline basis.

Value

a B-spline basis of degree deg and ndx + 1 internal knots.

Examples

x_finegrid <- seq(0.001, 1.0, (1.0 - 0.001) / 1000)
bbase(x_finegrid)

[Package utilityFunctionTools version 0.1.1 Index]