View source: R/summary.vem_fit.R
| summary.vem_fit | R Documentation |
Provides a displayed summary of the results from vem_fit and
invisibly returns a list of summary statistics, including the basis type,
number of curves, selected K, active basis counts per curve,
estimated model parameters, and GCV tuning results if applicable.
Reported variational posterior parameters for \sigma^2 and
\tau^2 are the shape and scale of their respective
Inverse-Gamma variational distributions:
q(\sigma^2) = \text{IG}(\delta_1^*, \delta_2^*) and
q(\tau^2) = \text{IG}(\lambda_1^*, \lambda_2^*).
For composite fits (selection_metric = "per_curve"), parameters
from the first curve are shown as representative values.
## S3 method for class 'vem_fit'
summary(object, ...)
object |
A |
... |
Currently unused. |
Invisibly returns a list with element active_bases: an
integer vector of active basis counts per curve.
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
vem_fit, coef.vem_fit
data(toy_curves)
fit <- vem_fit(y = toy_curves$y, Xt = toy_curves$Xt, K = 8)
summary(fit)
# Active basis counts are returned invisibly
s <- summary(fit)
s$active_bases
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.