Is it possible to create variables using Stata's matrix commands?
Given time series data on variables a, b, c, d, e, f, g, and h, is there a
way to create two new variables, X and Y, based on simple matrix inversion,
as in x = A^(-1)*b, where
matrix A = (a b \ c d)
matrix b = (e f \ g h)
matrix x = (X \ Y).
(I understand that one can create X and Y via simple substitution, but with
larger systems of equations, this becomes quite cumbersome.)
Many thanks.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/