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

lambda2df

Convert Smoothing Parameter to Degrees of Freedom


Description

The degree of roughness of an estimated function is controlled by a smoothing parameter $lambda$ that directly multiplies the penalty. However, it can be difficult to interpret or choose this value, and it is often easier to determine the roughness by choosing a value that is equivalent of the degrees of freedom used by the smoothing procedure. This function converts a multipler $lambda$ into a degrees of freedom value.

Usage

lambda2df(argvals, basisobj, wtvec=rep(1, n), Lfdobj=NULL, lambda=0)

Arguments

argvals

a vector containing the argument values used in the smooth of the data.

basisobj

the basis object used in the smoothing of the data.

wtvec

the weight vector, if any, that was used in the smoothing of the data.

Lfdobj

the linear differential operator object used to defining the roughness penalty employed in smoothing the data.

lambda

the smoothing parameter to be converted.

Value

the equivalent degrees of freedom value.

See Also


fda

Functional Data Analysis

v5.1.9
GPL (>= 2)
Authors
J. O. Ramsay <ramsay@psych.mcgill.ca> [aut,cre], Spencer Graves <spencer.graves@effectivedefense.org> [ctb], Giles Hooker <gjh27@cornell.edu> [ctb]
Initial release
2020-12-16

We don't support your browser anymore

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