Statalist The Stata Listserver


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

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


From   Rachel <[email protected]>
To   [email protected]
Subject   Re: st: Re: Extracting list of RHS variables after recalling stored estimates?
Date   Thu, 14 Jun 2007 14:32:27 -0400

Thanks, Michael.  This is exactly what I needed.

Could you explain how one "parses eqvarnames on colons?"  I assume you
are referring to some command that would list the varnames for each
equation separately by looking at the first word in eqvarnames, but
I'm not sure how to do this.

Thanks,
Rachel

On 6/14/07, Michael Blasnik <[email protected]> wrote:
...
Well, it depends on what you want them for and how you plan to use them.  I
don't know what you mean by *list* form.  Once you restore the estimates, you
should have full access to whatever you normally would have right after
estimation.  You can start out looking at the results of these commands:

mat b=e(b)
local eqnames: coleq b
local varnames: colnames b
local eqvarnames: colfullnames b

di "`eqnames'"
di "`varnames'"
di "`eqvarnames'"

You can then either do a foreach loop through the varnames and check which
equations they are in using eqnames, or you can just loop through and parse
eqvarnames on colons.

Michael Blasnik

----- Original Message -----
From: "Rachel" <[email protected]>
To: "statalist" <[email protected]>
Sent: Thursday, June 14, 2007 1:43 PM
Subject: st: Extracting list of RHS variables after recalling stored estimates?


>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