[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: referencing eresult matrices

From   Maarten buis <>
Subject   Re: st: referencing eresult matrices
Date   Thu, 5 Nov 2009 21:53:23 +0000 (GMT)

--- On Thu, 5/11/09, Jeph Herrin wrote:
> After an estimation, I often want to get a particular
> element of one of the result matrices, and know I can do
> it as follows:
>   reg y x
>   matrix b = e(b)
>   di el("b",1,1)
> But there must be a way to eliminate the middleman b? This
>   reg y x
>   di el("e(b)",1,1)
> doesn't work, but I'm sure there's a way to reference e(b)
> so that I don't need to store it in another matrix first.
> In fact, I'm sure I knew it once, even.

Say the variable whose coefficient you want is called x, 
than you can refer to it as _b[x] (and its standard error as 

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

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