View source: R/summary.savvySh.R
| summary.savvySh_model | R Documentation |
Provides a comprehensive summary for one or more shrinkage estimators contained within a
savvySh_model object produced by savvySh. The summary includes estimated coefficients,
confidence intervals, residual statistics, R-squared measures, F-statistics, and information criteria (AIC, BIC)
for each specified estimator.
## S3 method for class 'savvySh_model'
summary(object, estimator = NULL, ...)
object |
A fitted model object of class |
estimator |
A character vector naming one or more estimators to summarize (e.g., |
... |
Additional arguments (currently unused). |
For each estimator present in the savvySh_model object (or for the user-specified subset), this function computes:
A summary of the residual distribution (quantiles).
A coefficient table including estimates, standard errors, t-values, p-values, and confidence intervals.
Residual standard error and degrees of freedom.
R-squared and adjusted R-squared measures.
F-statistic (and its p-value) for testing overall regression significance.
Information criteria (AIC, BIC) and deviance for model fit.
These results are printed in sequence for the selected estimator(s). If no estimator is specified, summaries for all available estimators are printed.
Invisibly returns a data.frame summarizing key metrics for each estimator (including estimator name,
number of non-zero coefficients, and optimal lambda if available).
Ziwei Chen, Vali Asimit, Marina Anca Cidota, Jennifer Asimit
Maintainer: Ziwei Chen <ziwei.chen.3@citystgeorges.ac.uk>
savvySh for fitting slab and shrinkage linear models,
predict.savvySh_model for generating predictions,
coef.savvySh_model for extracting coefficients directly.
# Generate simulated data for demonstration
set.seed(123)
x <- matrix(rnorm(100 * 5), 100, 5)
y <- rnorm(100)
# Fit a Slab Regression model
fit <- savvySh(x, y, model_class = "Slab")
# Print a detailed summary for all estimators (SR and GSR)
summary(fit)
# Summarize only a specific estimator
summary(fit, estimator = "GSR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.