summary.gamsel: Gamsel summary routine

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

This makes a two-panel plot of the gamsel object.

Usage

1
2
## S3 method for class 'gamsel'
summary(object, label = FALSE, ...)

Arguments

object

gamsel object

label

if TRUE, annotate the plot with variable labels. Default is FALSE

...

additional arguments to summary

Details

A two panel plot is produced, that summarizes the linear components and the nonlinear components, as a function of lambda. For the linear components, it is the coefficient for each variable. For the nonlinear, we see the norm of the nonlinear coefficients.

Value

Nothing is returned.

Author(s)

Alexandra Chouldechova and Trevor Hastie
Maintainer: Trevor Hastie hastie@stanford.edu

References

Chouldechova, A. and Hastie, T. (2015) Generalized Additive Model Selection

See Also

gamsel, and methods plot, print and predict for cv.gamsel object.

Examples

1
2
3
4
5
6
7
8
##data=gamsel:::gendata(n=500,p=12,k.lin=3,k.nonlin=3,deg=8,sigma=0.5)
data = readRDS(system.file("extdata/gamsel_example.RDS", package = "gamsel"))
attach(data)
bases=pseudo.bases(X,degree=10,df=6)
# Gaussian gam
gamsel.out=gamsel(X,y,bases=bases)
par(mfrow=c(1,2),mar=c(5,4,3,1))
summary(gamsel.out)

gamsel documentation built on Feb. 4, 2022, 5:09 p.m.