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

Re: st: Difference btw "clear" & "drop _all"


From   Richard Williams <Richard.A.Williams.5@nd.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Difference btw "clear" & "drop _all"
Date   Fri, 19 Mar 2004 16:21:00 -0500

At 04:14 PM 3/19/2004 -0500, Nomorenook@netscape.net wrote:
Hi all,

I am a newbie to STATA and I have a question regarding "clear" and "drop _all".

According to STATA, these two are supposed to be the same. However, if I use "clear", even my matrices are deleted from the memory, as opposed to "drop _all", which just deletes the variables but maintains matrices in the memory. Can anyone tell me more about the differences between these two commands?

Thank you very much!
-clear- does a lot more than -drop all-  If you type -help drop- it says

    clear is equivalent to typing

        . version 8.2
        . drop _all
        . label drop _all        (see help label)
        . scalar drop _all       (see help scalar)
        . matrix drop _all       (see help matrix)
        . cluster drop _all      (see help cluster)
        . eq drop _all
        . constraint drop _all   (see help constraint)
        . postutil clear         (see help postutil)
        . _return drop _all      (see help _return)
        . discard                (see help discard)



-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX:    (574)288-4373
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW (personal):    http://www.nd.edu/~rwilliam
WWW (department):    http://www.nd.edu/~soc

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