par2bsp: Convert parameters to B-spline function

par2bspR Documentation

Convert parameters to B-spline function

Description

Convert parameters to B-spline function

Usage

par2bsp(n, qw, xk, covqw = NULL, sdy = NULL, sdqw = NULL)

Arguments

n

Integer scalar, polynomial order of B-splines

qw

Numeric vector or matrix, coefficients of B-splines, one set per column in case of matrix

xk

Numeric vector, knots

covqw

Numeric Matrix, covariance matrix of qw (can be estimated in smbsp).

sdy

Numeric vector, SD of each y column (can be estimated in smbsp).

sdqw

Numeric Matrix, SD of qw thus having the same dimension as qw (can be estimated in smbsp).

Value

Function, calculating B-splines at arbitrary points and having interface f(x, select, fsd=0.) where x is a vector of abscissa points. Parameter select is passed to qw[, select, drop=FALSE] and can be missing or NULL in which case all columns of qw are used. fsd is a factor for SD to be added to the B-spline. Column names in the result matrix returned by f() will be inherited from qw.


bspline documentation built on April 4, 2025, 4:54 a.m.

Related to par2bsp in bspline...