Dear community,
I've prepared two new commands to solve non-traditional types of linear programming via least squares (minimum norm general solution).
Many thanks to Kit Baum for uploading their latest versions to the SSC!
lppinv – a module to solve an under-, over- and identified linear problem without an objective function with the Moore-Penrose pseudoinverse and singular value decomposition (SVD).
The algorithm solves "hybrid" least squares linear programming (LS-LP) problems with the help of the Moore-Penrose inverse (pseudoinverse), calculated using singular value decomposition (SVD), with emphasis on estimation of non-typical constrained OLS (cOLS), Transaction Matrix (TM), and custom (user-defined) cases. Eventual regression analysis and a Monte-Carlo-based t-test of mean NRMSE is performed, the sample being drawn from a uniform or a user-specified distribution (Mata function).
tmpinv – a module to solve an under-, over- and identified Transaction Matrix (TM) problem with the help of the Moore-Penrose pseudoinverse, singular value decomposition (SVD), an F-test from linear regression/t-test of mean normalized RMSE, and results adjustment for extreme values.
The algorithm solves "hybrid" linear programming-least squares (LP-LS) Transaction Matrix (TM) problems with the help of the Moore-Penrose inverse (pseudoinverse), calculated using singular value decomposition (SVD). Estimation using 2x2 to 50x50 contiguous submatrices, repeated with compensatory slack variables until NRMSE is minimized in a given number of iterations, is followed by an F-test from linear regression/t-test of mean NRMSE from a pre-simulated distribution (Monte-Carlo, 50,000 iterations with matrices consisting of normal random variates). The result is adjusted for extreme values to match the RHS via shares of estimated row/column sums if the corresponding option is specified.
They can help solve a variety of interesting problems like calculating input-output tables, transaction matrices (like bilateral trade and investment tables), supply-use relations, a GDP (depvar) model with regards to a business cycle definition, etc.
If you are interested, you can find more information and examples in their help files.
I'm working on papers on the topic.
Have a nice day,
IB
Related Posts with New lppinv and tmpinv commands in Stata 16+
Deleting part of a text in a string variableHi STATALIST, I need to create b from a : Code: * Example generated by -dataex-. To install: ss…
Making a histogram from a table of frequenciesHello, I would like to make a histogram from a table that shows how frequent choices 1, 2, and 3 we…
Asdoc: format percentage in tableHi all, I wonder if it´s possible format percentage in a table with asdoc. I mean display percentag…
Why are all my residuals negative?I'm trying to use GMM to estimate a model on the following data: Code: * Example generated by -dat…
Level-2 Dependent variableGood morning, I am working with data from students (level 1) belonging to classes (level 2) within …
Subscribe to:
Post Comments (Atom)
0 Response to New lppinv and tmpinv commands in Stata 16+
Post a Comment