Description Usage Arguments Value
Provides internal knots locations in spline-based models for a fixed number of knots.
1 2 3 4 5 6 7 8 9 | knotfixfit(
x,
y,
nknots,
delta,
degree,
b.knots = c(min(x), max(x)),
bspline = TRUE
)
|
x |
Vector of function arguments. |
y |
Vector of function values. |
nknots |
Number of internal knots. |
delta |
Minimal distance value between two consecutive knots. |
degree |
Degree of the spline basis. |
b.knots |
External knots vector. Default is the (min(x),max(x)). |
bspline |
Logical value. If TRUE, B-spline is fitted. Else, natural splines. |
A list with selected internal knots, mean square error and fitted model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.