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

st: RE: ereturned matrices


From   "Ines Butler" <ibutler@ieral.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: ereturned matrices
Date   Tue, 3 Jun 2003 12:53:24 -0300

You can do it by typing _b[varname]


Inés Butler
IERAL Fundación Mediterránea

ibutler@ieral.org <mailto:ibutler@ieral.org>
www.ieral.org
(54 11)  4312 4114



-----Mensaje original-----
De: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu]En nombre de David Kantor
Enviado el: Tuesday, June 03, 2003 12:45 PM
Para: statalist@hsphsun2.harvard.edu
Asunto: st: ereturned matrices


Hi, everyone.

This is probably a trivial matter, but I can't figure it out.

(Stata 8.)

After a command such as -regress-, you get matrices returned in e(), such
as e(b).

I would like to refer to a particular element of e(b), but I can't seem to
do it directly.  I can refer to the whole of e(b), but not to e(b)[1,4] or
el(e(b),1,4).

The only way I seem to be able to do it is to copy the whole matrix:
  mat M = e(b)
Then I can refer to M[1,4] or el(M,1,4).

Is that the only way to do it?

Thanks to anyone who can help.

-- David

David Kantor
Institute for Policy Studies
Johns Hopkins University
dkantor@jhu.edu
410-516-5404

*
*   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/

*
*   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/



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