EconPapers    
Economics at your fingertips  
 

lassopack: Model Selection and Prediction with Regularized Regression in Stata

Achim Ahrens, Christian Hansen and Mark Schaffer ()

No 12081, IZA Discussion Papers from IZA Network @ LISER

Abstract: This article introduces lassopack, a suite of programs for regularized regression in Stata. lassopack implements lasso, square-root lasso, elastic net, ridge regression, adaptive lasso and post-estimation OLS. 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 different approaches for selecting the penalization ('tuning') parameters: 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') penalization for the lasso and square-root lasso for cross-section and panel data (rlasso). We discuss the theoretical framework and practical considerations for each approach. We also present Monte Carlo results to compare the performance of the penalization approaches.

Keywords: lasso2; cvlasso; rlasso; lasso; elastic net; square-root lasso; cross-validation (search for similar items in EconPapers)
JEL-codes: C53 C55 C87 (search for similar items in EconPapers)
Pages: 55 pages
Date: 2019-01
New Economics Papers: this item is included in nep-big
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (15)

Published - published in: Stata Journal, 2020, 20 (1), 176-235.

Downloads: (external link)
https://docs.iza.org/dp12081.pdf (application/pdf)

Related works:
Journal Article: lassopack: Model selection and prediction with regularized regression in Stata (2020) 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:iza:izadps:dp12081

Access Statistics for this paper

More papers in IZA Discussion Papers from IZA Network @ LISER Contact information at EDIRC.
Bibliographic data for series maintained by Mark Fallak ().

 
Page updated 2026-02-20
Handle: RePEc:iza:izadps:dp12081