Description Usage Arguments Value
Provides optimal number of internal knots and their locations in spline-based models.
1 2 3 4 5 6 7 8 9 10 |
x |
Vector of function arguments. |
y |
Vector of function values. |
nlimknot |
Maximum number of internal knots. |
lambda |
Tunning parameter of the penalized least squares estimation process. |
delta |
Minimal distance value between two consecutive knots. |
degree |
Degree of the spline basis. |
bspline |
External knots vector. Default is the (min(x),max(x)). |
b.knots |
Logical value. If TRUE, B-spline is fitted. Else, natural splines. |
A list with selected knots and fitted model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.