gamlss.cs: Support for Function cs() and scs()
Description
This is support for the functions cs(), and scs().
It is not intended to be called directly by users. The function gamlss.cs
is using the R function smooth.spline
Usage
gamlss.cs(x, y, w, df = NULL, spar = NULL, xeval = NULL, ...)
Arguments
df
effective degrees of freedom
spar
spar the smoothing parameter
Value
- Returns a class "smooth.spline" object with
- residualsThe residuals of the fit
- fitted.valuesThe smoothing values
- varthe variance for the fitted smoother
- lambdathe final value for spar
- nl.dfthe smoothing degrees of freedom excluding the constant and linear terms, i.e. (df-2)
- coefSmothis is a list containing among others the knots and the coefficients