Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

Value

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

Author(s)

Mikis Stasinopoulos d.stasinopoulos@londonmet.ac.uk, Bob Rigby

See Also


gamlss

Generalised Additive Models for Location Scale and Shape

v5.3-4
GPL-2 | GPL-3
Authors
Mikis Stasinopoulos [aut, cre, cph], Bob Rigby [aut], Vlasios Voudouris [ctb], Calliope Akantziliotou [ctb], Marco Enea [ctb], Daniil Kiose [ctb]
Initial release
2021-03-31

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.