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 <[email protected]>
To   [email protected]
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, [email protected] 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:  [email protected]
WWW (personal):
WWW (department):

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index