Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Extracting list of RHS variables after recalling stored estimates?


From   "Ben Jann" <[email protected]>
To   [email protected]
Subject   Re: st: Extracting list of RHS variables after recalling stored estimates?
Date   Thu, 14 Jun 2007 20:31:15 +0200

Maybe this helps:

=============
. sysuse auto, clear
(1978 Automobile Data)

. qui reg price mpg rep78 headroom trunk

. di "`: colnames e(b)'"
mpg rep78 headroom trunk _cons
=============

By the way, you could also (mis)use -estout-:

=============
. qui heckman price mpg rep78, select(foreign= mpg rep78 trunk) two

. estout, cell(_) keep(price:) collabels(,none) mlabels(,none)

price
mpg
rep78
_cons

. estout, cell(_) keep(foreign:) collabels(,none) mlabels(,none)

foreign
mpg
rep78
trunk
_cons
=============

Add -drop(_cons)- if you do not want to see the _cons.

ben

On 6/14/07, Rachel <[email protected]> wrote:
I executed an ML command and stored the results using -estsave-.
Calling -estsave, from()- and -ml display- displays the entire set of
results with the names of the covariates within the table.  However,
I'd like to extract or display the list of covariates (RHS variables)
in each equation in *list* form.  Is this possible?

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