select.knots | R Documentation |
Construct knots from either quantiles of observed time points or equally-spaced time points.
select.knots(t,knots=10,p=3,option="equally-spaced")
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 |
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
.
A vector of knots
Luo Xiao <lxiao5@ncsu.edu>
t <- rnorm(100) knots <- select.knots(t)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.