new_spedecon_spline_sped_fit {spedecon}R Documentation

Creates object of class spedecon_spline_sped_fit

Description

Internal use only. Constructor for class spedecon_spline_sped_fit

Usage

new_spedecon_spline_sped_fit(coef, basis, alpha, constraint)

Arguments

coef

Numeric vector; the coefficients of the spline.

basis

Object of class spedecon_spline_basis, representing a basis for the spline space.

alpha

Positive numeric, the alpha that was used for the fit.

constraint

The type of constraint used.

Details

The basic type of an object of type spedecon_spline_sped_fit is a function; one can therefore evaluate, plot, etc. and ignore the other attributes if desired. The function is represented as a spline, and has attributes coef and basis, which represents the coefficients and basis respectively. coef is a numeric vector, while basis is an object of class spedecon_spline_basis, which is essentially just a list holding the knots and order of the spline space. A spedecon_spline_sped_fit object also has attributes alpha and constraint which record the penalty parameter and constraint method used for the fit.

Value

Object of class spedecon_spline_sped_fit


[Package spedecon version 0.1 Index]