NNLS: Stata module to compute non-negative least squares
Giovanni Cerulli
Statistical Software Components from Boston College Department of Economics
Abstract:
nnls is a command implementing non-negative least squares (NNLS) in Stata on top of Python using the Python function "nnls()". NNLS is a type of constrained least squares problem where the coefficients are not allowed to become negative. Generally, NNLS provides regularized (or sparse) solution, meaning that only a few parameters of the least squares regression are allowed to be positive and non-zero.
Language: Stata
Requires: Stata version 16 and center from SSC (q.v.)
Keywords: non-negative least squares; python (search for similar items in EconPapers)
Date: 2024-05-06, Revised 2024-05-07
Note: This module should be installed from within Stata by typing "ssc install nlls". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/n/nnls.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/n/nnls_predict.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/n/nnls.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/s/svmat2.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/s/svmat2.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/b/boston.dta sample data file (application/x-stata)
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:bocode:s459325
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().