summary.freekt: Summarize Free-Knot Spline Fit

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Rfunc.R

Description

This function displays a summary of the fit obtained using a free-knot spline.

Usage

1
2
## S3 method for class 'freekt'
summary(object, ...)

Arguments

object

An object of class "freekt" obtained by using one of the fitting algorithms.

...

Additional arguments to be passed to summary.freekt. Currently ignored.

Value

A table containing the values of the optimal amount of penalty (when applicable), the optimal knots, sum of squared errors (SSE), and generalized cross-validation (GCV).

Author(s)

Steven Spiriti

See Also

freeknotfit for the fitting algorithms.

Examples

1
2
3
4
5
6
x <- 0:30/30
truey <- x*sin(10*x)
set.seed(10556)
y <- truey + rnorm(31, 0, 0.2)
xy.freekt <- freelsgen(x, y, degree = 2, numknot = 2, 555)
summary.freekt(xy.freekt)

freeknotsplines documentation built on May 2, 2019, 8:51 a.m.