[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: creating variables using matrix commands
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.)
* For searches and help try: