A list with components 'penalty', 'cv' and 'nlm.code' which give the
location of the minimum, the value of the cross-validation
criterion at that point and the code returned by the nlm
function - useful to assess for convergence issues.
Details
For every linear smoother e.g. \(\hat{y} = S_\lambda y\), the cross-validation criterion consists in minimizing
the following quantity:
$$CV(\lambda) = \sum_{i=1}^n \left(\frac{y_i - \hat{y}_i}{1 -
S_{\lambda,ii}} \right)^2$$
where \(\lambda\) is the penalty coefficient, \(n\) the
number of observations and \(S_{\lambda,ii}\) the
i-th diagonal element of the matrix \(S_\lambda\).
References
Ruppert, D. Wand, M.P. and Carrol, R.J. (2003) Semiparametric
Regression Cambridge Series in Statistical and Probabilistic
Mathematics.