Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: depvar name in b an V matrix


From   "Nakelse, Tebila (AfricaRice)" <T.Nakelse@cgiar.org>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: depvar name in b an V matrix
Date   Sat, 17 Mar 2012 14:31:52 +0000

Dear Statalisters,
I am using regress command in Stata and I would like to know if it is possible to add the depvar name in b an V matrix as it is done in logit  command.
For logit  when  I do : 
Logit y x 

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

when I do
 regress y x, 
I will have

e(b)[1,2]
       x                 _cons
y1  -.00809294   .045464
 
without y in e(b) column names what I want to do  

I know I can  pass through a regular matrix and used matrix functions such as coleq, roweq, colnames or rownames and after repost in e and V.

I will appreciate any help 
Tebila



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index