Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Accessing many estimation results


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: Accessing many estimation results
Date   Tue, 13 Jul 2004 08:01:55 -0400

It sounds like -estsave- is not the right tool for what you want to do.  It
looks like you are running the same regression for different groups of
observations and you only care about presenting the coefficients.  You would
be much better off using -statsby- or -parmby- or -outreg- or some other
tool more designed for that purpose.  -estsave- is really intended for
saving the complete statistics of an estimation command for future retrieval
so you can use post estimation commands.  There are other commands much
better suited for keeping tracking of results by group.

Michael Blasnik
[email protected]


p.s. As the author of estsave, I'm not sure about the reason for the error
message but will check into it at some time.

----- Original Message ----- 
From: <[email protected]>
To: <[email protected]>
Sent: Tuesday, July 13, 2004 6:06 AM
Subject: st: Accessing many estimation results


> I am trying to store and access the estimation results from many
regression
> runs that I am conducting.  I have tried using estsave two different ways,
> both with problems:
>
>
>
> 1) I have given the variable created by estsave a single name.  This has
the
> obvious problem of displaying only the results from the latest regression
> run.  The code I used is
>
> regress log_BMI year midage midage2 midage3 ageyear if id == `svy'
>
>                         estsave , gen(reg_1)
>
>
>
> 2) I have given the variable created by estsave a new name for each run.
> The code I used is
>
>
>
> regress log_BMI year midage midage2 midage3 ageyear if id == `svy'
>
>                         estsave , gen(reg_`svy')
>
>
>
> However, when I try to access the results of a particular run, I get the
> following error
>
>
>
> . estsave , from(reg_1)
>
> esample() invalid
>
> r(221);
>
>
>
> How can I get around this problem?  My ideal is to have all the regression
> coefficients together in a way that allows me to quickly cut and paste the
m
> for display purposes.
>
>
>
> Thanks!


*
*   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