EconPapers    
Economics at your fingertips  
 

Introduction to lasso using Stata

Miguel Dorta
Additional contact information
Miguel Dorta: StataCorp

Colombian Stata Users' Group Meetings 2022 from Stata Users Group

Abstract: The lasso command package is available as of Stata 16 and has enhanced features in Stata 17. You can use lasso to perform model selection and prediction for continuous, binary, and count outcomes, plus use state-of-the-art methods to make inferences on the variables of interest, while lasso selects the control variables. This presentation provides an introduction to lasso using Stata. In lasso for prediction, some conceptual aspects of the methods will be addressed. An example of continuous variable prediction comparing lasso, elastic net, square-root lasso, and ordinary least squares (OLS), among other things, will be presented, showing how to use the options to select the value of the lasso penalty parameter. In lasso for inference, some of the theory will be covered. Likewise, it will provide an example for a linear model using the double-selection, partialing-out, and cross-fit partialing-out lasso methods (also known as double machine learning), and finally, it will show how to customize individual lassos and how to use some control selection techniques.

Date: 2022-09-06
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/csug2023/Colombia22_Dorta.pdf presentation materials (application/pdf)
Our link check indicates that this URL is bad, the error code is: 404 Not Found

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:colo22:02

Access Statistics for this paper

More papers in Colombian Stata Users' Group Meetings 2022 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-19
Handle: RePEc:boc:colo22:02