A matrix with length(x) rows and nseg + bdeg columns.
Arguments
x
a vector of argument values, at which the B-spline basis functions
are to be evaluated.
xl
the lower limit of the domain of x; default is min(x).
xr
the upper limit of the domain of x; default is max(x).
nseg
the number of equally sized segments between xl and xr; default is 10.
bdeg
the degree of the splines, usually 1, 2, or 3 (default).
Author
Paul Eilers and Brian Marx
Details
If xl is larger than min(x), it will be adjusted to min(x) and a warning wil be given.
If xr is smaller than max(x), it will be adjusted to max(x) and a warning wil be given.
The values of the design parameters x, xl, xr, ndeg, bdeg and type = 'bbase' are added to the list of attributes of the matrix.
References
Eilers, P.H.C. and Marx, B.D. (2021). Practical Smoothing, The Joys of
P-splines. Cambridge University Press.
Eilers, P.H.C. and Marx, B.D. (1996). Flexible smoothing with
B-splines and penalties (with comments and rejoinder), Statistical Science,
11: 89-121.
Eilers, P.H.C. and B.D. Marx (2010).
Splines, knots and penalties. Wiley Interdisciplinary
Reviews: Computational Statistics. Wiley: NY. DOI: 10.1002/wics.125