EconPapers    
Economics at your fingertips  
 

lassopack: Model selection and prediction with regularized regression in Stata

Achim Ahrens, Christian Hansen and Mark Schaffer ()

Stata Journal, 2020, vol. 20, issue 1, 176-235

Abstract: In this article, we introduce lassopack, a suite of programs for regularized regression in Stata. lassopack implements lasso, square-root lasso, elastic net, ridge regression, adaptive lasso, and postestimation ordinary least squares. The methods are suitable for the high-dimensional setting, where the number of predictors p may be large and possibly greater than the number of observations, n. We offer three approaches for selecting the penalization (“tuning”) parame- ters: information criteria (implemented in lasso2), K-fold cross-validation and h-step-ahead rolling cross-validation for cross-section, panel, and time-series data (cvlasso), and theory-driven (“rigorous” or plugin) penalization for the lasso and square-root lasso for cross-section and panel data (rlasso). We discuss the theo- retical framework and practical considerations for each approach. We also present Monte Carlo results to compare the performances of the penalization approaches.

Keywords: lasso2; cvlasso; rlasso; cvlassologit; lassologit; rlassologit; lasso2 postestimation; lassologit postestimation; rlasso postestimation; lasso; elastic net; square-root lasso; cross-validation (search for similar items in EconPapers)
Date: 2020
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj20-1/st0594/
References: Add references at CitEc
Citations: View citations in EconPapers (57)

Downloads: (external link)
http://hdl.handle.net/10.1177/1536867X20909697

Related works:
Working Paper: lassopack: Model selection and prediction with regularized regression in Stata (2019) Downloads
Working Paper: lassopack: Model Selection and Prediction with Regularized Regression in Stata (2019) Downloads
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:tsj:stataj:v:20:y:2020:i:1:p:176-235

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

DOI: 10.1177/1536867X20909697

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LP
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-01-08
Handle: RePEc:tsj:stataj:v:20:y:2020:i:1:p:176-235