Aamer:
One option is -estout-, it is about as flexible in organizing results as you can get.
If you want to do this using a matrix than the following works in Stata 8.2 (I don't have access to Stata 9 yet)
*--------------------begin example-----------------------
sysuse auto, clear
reg price foreign rep78
mat A = 1, _b[foreign], _se[foreign], e(r2)
reg price foreign rep78 weight
mat A = A\2, _b[foreign], _se[foreign], e(r2)
reg price foreign rep78 weight mpg
mat A = A\3, _b[foreign], _se[foreign], e(r2)
matrix list A
*---------------------end example------------------------
HTH,
Maarten
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Aamer Abu-Qarn
Sent: zondag 18 december 2005 14:54
To: [email protected]
Subject: st: Assign values to cells in a blank matrix or table
Hello,
What I want is to extract some info from regressions output (coef.,
std, t,
r2) and assign them to cells of a matrix/table that i declare. So at
the end
i'll get a formatted matrix/table that includes info from many
regression
that i run. Assuming I declare a matrix/table A(10,4) in which the
first
coulmn would include the regression number, the second _b[X1], the
third
_se[X1], and the fourth R2. each of the rows would refer to a different
regression. I know that in Eviews it's possible to declare a matrix or
table
of a specific dimension and then start assigning the values of each
cell
from regression output or from any other source (any values/strings).
I looked in the manual of stata and i couldn't find a command to just
declare a matrix/table of a given dimension without filling it at the
same
time.
to sum it up all i need is a flexible way to organize my results.
I'm aware of the command outreg but i need a more flexible way of
organizing
the results.
Thanks a lot in advance,
Aamer
*
* 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/