Translating the S-Plus Least Angle Regression package to Mata
Adrian Mander ()
United Kingdom Stata Users' Group Meetings 2007 from Stata Users Group
Abstract:
In an attempt to learn Mata I have translated the LARS package, written for R by Trevor Hastie and Brad Efron, into Mata. The LARS package is an efficient implementation of an entire lasso sequence with the cost of a single least-squares estimation. Mata and R/S+ are incredibly similar in terms of syntax and on the whole can be translated by altering the syntax “wording”, however, there was the occasional need for additional functions. It is certainly not the best approach to learning a new language. I shall describe the new Stata command and apply this approach to model selection to some nutrition data.
Date: 2007-09-14
References: Add references at CitEc
Citations:
Downloads: (external link)
http://repec.org/usug2007/LARS.ppt presentation slides (application/x-ms-powerpoint)
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:usug07:13
Access Statistics for this paper
More papers in United Kingdom Stata Users' Group Meetings 2007 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().