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

st: Re: elements of returned matrices


From   Christopher Baum <[email protected]>
To   [email protected]
Subject   st: Re: elements of returned matrices
Date   Wed, 4 Jun 2003 07:36:55 -0400

On Wednesday, June 4, 2003, at 02:33 AM, David wrote:

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?
Yes. This has always been the case.

Kit Baum, Boston College Economics      [email protected]
http://fmwww.bc.edu/ec/baum.php

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index