bbase: Constructs a B-spline basis of degree 'deg' (Code by Paul...

Description Usage Arguments Value Examples

View source: R/HigherOrderRiskPreferences.R

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

1
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

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

utilityFunctionTools documentation built on March 29, 2021, 5:06 p.m.