| par2bsp | R Documentation |
Convert parameters to B-spline function
par2bsp(n, qw, xk, covqw = NULL, sdy = NULL, sdqw = NULL)
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 |
sdy |
Numeric vector, SD of each y column (can be estimated in |
sdqw |
Numeric Matrix, SD of qw thus having the same dimension
as qw (can be estimated in |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.