Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: column names in e(b)


From   Keith Dear <[email protected]>
To   [email protected]
Subject   st: column names in e(b)
Date   Fri, 1 Jun 2012 12:35:38 +1000

A post-estimation program I wrote for poisson regression failed when a
colleague tried to use it after -regress-.
The reason turns out to be the different names used in the coefficient
matrix e(b) in each case:

. qui poisson y x
. mat list e(b)

e(b)[1,2]
             y:          y:
             x       _cons
y1    .0236604  -.69706433

. qui regress y x
. mat list e(b)

e(b)[1,2]
            x      _cons
y1  .01192463  .49802156

So -poisson- includes the equation name (depvar) in the column names,
while -regress- does not.

Is there a reason for this difference?
Is there a general rule?
Is there a standard way of handling this? (it wasn't hard to fix this
particular case, but in general?)
Where can I read about it?

Thanks,
Keith



-- 
Dr Keith Dear
Research School of Population Health
The Australian National University
Canberra, ACT 0200 Australia
Phone +61 (0)2 6273 2208
Skype keith_canberra
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index