Statalist The Stata Listserver


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

RE: st: problems with e(sample)


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: problems with e(sample)
Date   Mon, 19 Jun 2006 16:59:33 +0100

My batting average in this thread is << 1 but on this detail
I am still puzzled. 

In Stata 9 the help says 

discard drops all automatically loaded programs (see [U] 17.2 What is an
    ado-file?); clears e(), r(), and s() saved results (see return); eliminates
    information stored by the most recent estimation command and any other saved
    estimation results (see ereturn); closes any open graphs and drops all
    sersets (see serset); clears all class definitions and instances (see 
    classutil); and closes all dialogs and clears their remembered contents (see
    dialog programming).

In Stata 8.2 the help says 

   discard drops all automatically loaded programs (see [U] 20.2 What is an ado-file?); clears e(),
    r(), and s() saved results (see help return and [R] saved results); eliminates the information
    stored by the most recent estimation command and any other saved estimation results (see help 
    estimates); closes any open graphs and drops all sersets (see help serset); clears all class
    definitions and instances (see help classutil); and closes all dialogs and clears their remembered
    contents (see help dialogs).  Use discard when debugging ado-files.

If you are using an earlier version, you should indicate that in your 
postings. 

Nick 
[email protected] 

Ada Ma
 
> I wrote that warning because Zurab's post reminds me of an occassion
> where I had several sets of results saved using -est store- and then I
> came to a spot where Stata recommends that I try -discard-.  I tried
> and then whoosh, a lot of stuff (more than I thought I'd bargained
> for) was gone.
> 
> Most commands in Stata implement changes that are quite quickly /
> easily reversed, -discard- can potentially wipe out regresison results
> that take hours to run.  You're of course right in saying that the
> help file should be read but in my case it didn't help v much as the
> -discard- help file says nothing about -est-.

> On 6/18/06, Nick Cox <[email protected]> wrote:

> > The warning about -discard- is also puzzling here.
> > The implication that it is a dangerous command
> > is correct, but only if you don't read the help
> > and consider whether it is what you want.

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