| gcv_vem | R Documentation |
Computes the generalized cross-validation (GCV) score for each curve from a
vem_smooth model object. GCV approximates leave-one-out prediction
error and is used by tune_vem_by_gcv to select the optimal
number of basis functions K.
The smoother matrix S_i maps observed values to fitted values and is
constructed from the variational posteriors. Its trace provides the effective
degrees of freedom used in the GCV penalty.
gcv_vem(out, threshold = 0.5)
out |
A fitted object returned by |
threshold |
Numeric in |
A named numeric vector of length m of per-curve GCV scores.
Lower scores indicate better fit relative to model complexity.
da Cruz, A. C., de Souza, C. P. E., & Sousa, P. H. T. O. (2024). Fast Bayesian basis selection for functional data representation with correlated errors. arXiv:2405.20758. https://arxiv.org/abs/2405.20758
tune_vem_by_gcv, vem_smooth
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.