plot.bootpath {glmpath} | R Documentation |
Generates the histograms or the pairwise scatter plots of the bootstrap coefficients computed from bootstrap.path
Description
This function takes a bootpath
object from
bootstrap.path
and generates the histograms or the pairwise
scatter plots of the bootstrap coefficients.
Usage
## S3 method for class 'bootpath'
plot(x, type = c("histogram", "pairplot"),
mfrow = NULL, mar = NULL, ...)
Arguments
x |
a |
type |
If |
mfrow |
determines the numbers of rows and columns of the histograms on a page. 2 rows are generated as a default. |
mar |
margin relative to the current font size |
... |
other options for the plot |
Details
Fitting glmpath
or coxpath
gives a series of solution
sets with a varying size of the active set. Once we select an
appropriate value of the regularization parameter, and, thus a set of
coefficients, we may then validate the chosen coefficients through a
bootstrap analysis. plot.bootstrap
summarizes the bootstrap
results by generating the histograms or the pairwise scatter plots of
the bootstrap coefficients.
Author(s)
Mee Young Park and Trevor Hastie
References
Bradley Efron and Robert Tibshirani (1993) An Introduction to the Bootstrap CHAPMAN & HALL/CRC, Boca Raton.
Mee Young Park and Trevor Hastie (2007) L1 regularization path algorithm for generalized linear models. J. R. Statist. Soc. B, 69, 659-677.
See Also
bootstrap.path, coxpath, glmpath
Examples
data(heart.data)
attach(heart.data)
bootstrap.a <- bootstrap.path(x, y, B=5)
plot(bootstrap.a)
plot(bootstrap.a, type="pairplot")
detach(heart.data)