Computes effective degrees of freedom, generalized cross-validation (GCV),
and analytic leave-one-out residual diagnostics from a MALPS smoother matrix.
These diagnostics are exact for fixed-support, fixed-weight linear MALPS
fits. For cross-validated fits they are conditional on the selected support
profile. Robust fits are rejected by default for the same reason described
in smoother.matrix.
Usage
malps.gcv(
object,
y = NULL,
smoother.matrix = NULL,
include.loocv = TRUE,
max.n = 1000L,
allow.robust = FALSE,
...
)Arguments
- object
- y
Optional response vector. Defaults to
object$y.- smoother.matrix
Optional precomputed matrix from
smoother.matrix.- include.loocv
Logical; include analytic leave-one-out residuals and mean squared error.
- max.n
Maximum dense smoother size passed to
smoother.matrixwhensmoother.matrix = NULL.- allow.robust
Logical; passed to
smoother.matrix.- ...
Reserved for future extensions.