knots: Knots Method for GeDS, GeDSgam, GeDSboost

knots.GeDSR Documentation

Knots Method for GeDS, GeDSgam, GeDSboost

Description

Method for the generic function knots that allows the user to extract the vector of knots of a GeDS, GAM-GeDS or FGB-GeDS fit of a specified order contained in a "GeDS", "GeDSgam" or "GeDSboost" class, respectively.

Usage

## S3 method for class 'GeDS'
knots(Fn, n = 3L, options = c("all", "internal"), ...)

## S3 method for class 'GeDSgam'
knots(Fn, n = 3L, options = c("all", "internal"), ...)

## S3 method for class 'GeDSboost'
knots(Fn, n = 3L, options = c("all", "internal"), ...)

Arguments

Fn

The "GeDS", "GeDSgam" or "GeDSboost" class object from which the vector of knots for the specified GeDS, GAM-GeDS or FGB-GeDS fit should be extracted.

n

Integer value (2, 3 or 4) specifying the order (= degree + 1) of the "GeDS", "GeDSgam" or "GeDSboost" fit whose knots should be extracted. By default equal to 3L; non-integer values will be passed to the function as.integer.

options

A character string specifying whether "all" knots, including the left-most and the right-most limits of the interval embedding the observations (the default) or only the "internal" knots should be extracted.

...

Potentially further arguments (required for compatibility with the definition of the generic function). Currently ignored, but with a warning.

Details

This is a method for the function knots in the stats package.

As "GeDS" class, NGeDSgam and NGeDSboost 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.

Value

A vector in which each element represents a knot of the GeDS/GAM-GeDS/FGB-GeDS fit of the required order.

See Also

knots for the definition of the generic function; NGeDS, GGeDS, NGeDSboost and NGeDSgam for examples.


GeDS documentation built on June 30, 2025, 9:07 a.m.