select.knots {face} | R Documentation |
Knots selection for P-spline smoothing
Description
Construct knots from either quantiles of observed time points or equally-spaced time points.
Usage
select.knots(t,knots=10,p=3,option="equally-spaced")
Arguments
t |
Observed time points. |
knots |
Number of interior knots. |
p |
Degrees of B-splines to be used. |
option |
Default "equally-spaced": equally-spaced time points in the range of |
Details
The number of knots in the output will be knot
plus 2 times p
; and
the B-spline basis matrix constructed from this vector of knots with degrees p
will be knots
plus p
.
Value
A vector of knots
Author(s)
Luo Xiao <lxiao5@ncsu.edu>
Examples
t <- rnorm(100)
knots <- select.knots(t)
[Package face version 0.1-7 Index]