IDEAS home Printed from https://ideas.repec.org/p/boc/colo22/02.html
   My bibliography  Save this paper

Introduction to lasso using Stata

Author

Listed:
  • Miguel Dorta

    (StataCorp)

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.

Suggested Citation

  • Miguel Dorta, 2022. "Introduction to lasso using Stata," Colombian Stata Users' Group Meetings 2022 02, Stata Users Group.
  • Handle: RePEc:boc:colo22:02
    as

    Download full text from publisher

    File URL: http://repec.org/csug2023/Colombia22_Dorta.pdf
    File Function: presentation materials
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:colo22:02. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.