Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: creating variables using matrix commands

From   <>
Subject   st: creating variables using matrix commands
Date   Mon, 23 Dec 2002 09:23:08 -0500

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:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index