EconPapers    
Economics at your fingertips  
 

LASSOPACK: Stata module for lasso, square-root lasso, elastic net, ridge, adaptive lasso estimation and cross-validation

Achim Ahrens, Christian Hansen and Mark Schaffer ()

Statistical Software Components from Boston College Department of Economics

Abstract: LASSOPACK is a suite of programs for penalized regression methods suitable for the high-dimensional setting where the number of predictors p may be large and possibly greater than the number of observations. LASSOPACK supports both lasso and logistic lasso regression. The package consists of six main programs: lasso2 implements lasso, square-root lasso, elastic net, ridge regression, adaptive lasso and post-estimation OLS. cvlasso supports K-fold cross-validation and rolling cross-validation for cross-section, panel and time-series data. rlasso implements theory-driven penalization for the lasso and square-root lasso for cross-section and panel data. lassologit, cvlassologit and rlassologit are the corresponding programs for logistic lasso regression. The lasso (Least Absolute Shrinkage and Selection Operator, Tibshirani 1996), the square-root-lasso (Belloni et al. 2011) and the adaptive lasso (Zou 2006) are regularization methods that use L1 norm penalization to achieve sparse solutions: of the full set of p predictors, typically most will have coefficients set to zero. Ridge regression (Hoerl & Kennard 1970) relies on L2 norm penalization; the elastic net (Zou & Hastie 2005) uses a mix of L1 and L2 penalization. lasso2 implements all these estimators. rlasso uses the theory-driven penalization methodology of Belloni et al. (2012, 2013, 2014, 2016) for the lasso and square-root lasso. cvlasso implements K-fold cross-validation and h-step ahead rolling cross-validation (for time-series and panel data) to choose the penalization parameters for all the implemented estimators. lassologit, rlassologit and cvlassologit extend support to the case where the dependent variable is a binary response. In addition, rlasso implements the Chernozhukov et al. (2013) sup-score test of joint significance of the regressors that is suitable for the high-dimensional setting.

Language: Stata
Requires: Stata version 13.1
Keywords: lasso; elastic net; ridge regression; adaptive lasso; cross-validation; high-dimensional models; regularization; penalization; sparsity (search for similar items in EconPapers)
Date: 2018-02-02, Revised 2024-09-18
Note: This module should be installed from within Stata by typing "ssc install lassopack". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations: View citations in EconPapers (19)

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/l/lassoutils.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lasso2.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lasso2_p.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lasso2.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cvlasso.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cvlasso.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cvlassologit.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/r/rlasso.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cvlassologit.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lassologit.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/r/rlassologit.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lassologit_p.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/r/rlasso_p.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/r/rlasso.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lassopack.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lassologit.ihlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lassologit.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/r/rlassologit.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cs_rlasso.do certification script (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cs_cvlasso.do certification script (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cs_lasso2.do certification script (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cs_cvlassologit.do certification script (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cs_rlassologit.do certification script (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cs_lassologit.do certification script (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cs_lassologit_all.do certification script (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cs_lassologit_predict.do certification script (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cs_lassologit_weights.do certification script (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s458458

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-01-21
Handle: RePEc:boc:bocode:s458458