knots.GeDS | R Documentation |
Method for the generic function knots
that allows the
user to extract the vector of knots of a GeDS, GeDSboost or GeDSgam fit of a
specified order contained in a GeDS-class
,
GeDSboost-class
or GeDSgam-class
object,
respectively.
## S3 method for class 'GeDS'
knots(Fn, n = 3L, options = c("all", "internal"), ...)
## S3 method for class 'GeDSboost'
knots(Fn, n = 3L, options = c("all", "internal"), ...)
## S3 method for class 'GeDSgam'
knots(Fn, n = 3L, options = c("all", "internal"), ...)
Fn |
the |
n |
integer value (2, 3 or 4) specifying the order ( |
options |
a character string specifying whether " |
... |
potentially further arguments (required for compatibility with the definition of the generic function). Currently ignored, but with a warning. |
This is a method for the function knots
in the
stats package.
As GeDS-class
, GeDSboost-class
and
GeDSgam-class
objects contain three different fits (linear,
quadratic and cubic), it is possible to specify the order of the GeDS fit
whose knots are required via the input argument n
.
A vector in which each element represents a knot of the GeDS/FGB-GeDS/GAM-GeDS fit of the required order.
knots
for the definition of the generic function; NGeDS
, GGeDS
,
NGeDSboost
and NGeDSgam
for examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.