View source: R/cubicSplines-10-08-12.R
gamlss.cs | R Documentation |
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
gamlss.cs(x, y, w, df = NULL, spar = NULL, xeval = NULL, ...)
x |
the design matrix |
y |
the response variable |
w |
prior weights |
df |
effective degrees of freedom |
spar |
spar the smoothing parameter |
xeval |
used in prediction |
... |
for extra arguments |
Returns a class "smooth.spline" object with
residuals |
The residuals of the fit |
fitted.values |
The smoothing values |
var |
the variance for the fitted smoother |
lambda |
the final value for spar |
nl.df |
the smoothing degrees of freedom excluding the constant and linear terms, i.e. (df-2) |
coefSmo |
this is a list containing among others the knots and the coefficients |
Mikis Stasinopoulos, Bob Rigby
gamlss
, cs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.