calcTrAFast: Calculates the trace of the hat matrix as C version

Description Usage Arguments Details Value Note Author(s) References See Also

View source: R/KDSNlossFunc.R

Description

The trace of the hat matrix corresponds to the effective degrees of freedom (edf) of a generalized additive model. The edf is an internal measure of model complexity.

Usage

1
calcTrAFast(X, w, lambda=0)

Arguments

X

Design matrix of the covariates.

w

Diagonal weight matrix of the pseudo iterated least squares algorithm. See function calcWdiag.

lambda

Regularization parameter of kernel ridge regression. Default is 0 (numeric scalar).

Details

This function is a more computational efficient version of calcTrA. The general algorithm is simplified, requires less memory and is faster. Therefore it is better suited for data sets above 1000 observations.

Value

Effective degrees of freedom of a generalized additive model with regularization (numeric scalar).

Note

This function is not intended to be called directly by the user. Should only be used by experienced users, who want to customize the model.

Author(s)

Thomas Welchowski welchow@imbie.meb.uni-bonn.de

References

Simon N. Wood, (2006), Generalized Additive Models: An Introduction with R, Taylor \& Francis Group LLC

See Also

varMu, gDerivMu


kernDeepStackNet documentation built on May 2, 2019, 8:16 a.m.