| print.sdwd {sdwd} | R Documentation |
print an sdwd object
Description
Print a summary of the sdwd solution paths.
Usage
## S3 method for class 'sdwd'
print(x, digits=max(3, getOption("digits") - 3), ...)
Arguments
x |
A fitted |
digits |
Specify the significant digits. |
... |
Additional print arguments. |
Details
This function prints a two-column matrix with columns Df and Lambda, where the Df column exhibits the number of nonzero coefficients and the Lambda column displays the corresponding lambda value. This function is modified based on the print function from the gcdnet and the glmnet packages.
Value
A two-column matrix with one column of the number of nonzero coefficients and a second column of lambda values.
Author(s)
Boxiang Wang and Hui Zou
Maintainer: Boxiang Wang boxiang-wang@uiowa.edu
References
Wang, B. and Zou, H. (2016)
“Sparse Distance Weighted Discrimination", Journal of Computational and Graphical Statistics, 25(3), 826–838.
https://www.tandfonline.com/doi/full/10.1080/10618600.2015.1049700
Yang, Y. and Zou, H. (2013)
“An Efficient Algorithm for Computing the HHSVM and Its Generalizations",
Journal of Computational and Graphical Statistics, 22(2), 396–415.
https://www.tandfonline.com/doi/full/10.1080/10618600.2012.680324
Friedman, J., Hastie, T., and Tibshirani, R. (2010), "Regularization paths for generalized
linear models via coordinate descent," Journal of Statistical Software, 33(1), 1–22.
https://www.jstatsoft.org/v33/i01/paper
See Also
print.sdwd, predict.sdwd, coef.sdwd, plot.sdwd, and cv.sdwd.
Examples
data(colon)
fit = sdwd(colon$x, colon$y)
print(fit)