SplineBasis class.

Usage

splineBasis(type = "bspline", x, breaks, rangeval, norder = 3, lambda = 0.1, tol = 1e-16, 
  first = 0, last = 0)

SplineBasis(...)

getSplineDesign(bs, x, all = TRUE)

fitSplineBasis(bs, x, y)

Arguments

type
Type of spline basis: 'bspline', 'mspline' or 'ispline'. The default value is 'bspline'.
x
Numeric vector of data points.
breaks
Break points. Include the boundary knots; ordered.
rangeval
The range of data points (minimum and maximum values). Must include the break points.
norder
The order of the basis functions. The cubic spline basis has the order 4. The default value: 3.
lambda
Smoothing parameter for quadratic solver when performing fitting with restriction conditions.
tol
Tolerance value for stopping criteria in iterative procedures.
first
The number of first basis functions to be omitted. Supported values: 0 or 1. The default value is 0.
last
The number of last basis functions to be omitted. Supported values: 0 or 1. The default value is 0.
...
Parameters of constructor.
all
Logical whther include all basis functions.
bs
An object of class SplineBasis.
y
Numeric vector of data points (respone).

Value

An object of class 'SplineBasis'.

A design matrix.

Numeric vector of beta coefficients.

Description

Slots: type, rangeval, nbasis, params, breaks, norder, knots.

Constructor of SplineBasis class.

Wrapper to constructor of SplineBasis Class.

Function getSplineDesign.

Function fitSplineBasis.

Details

The number of spline basis functions: nbasis = norder + nknots - 2.