|
Size: 1018
Comment:
|
← Revision 5 as of 2025-10-24 16:52:40 ⇥
Size: 1021
Comment: Rewrite
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| The '''`clear`''' command clears data from memory. | '''`-clear-`''' clears data from memory. |
| Line 17: | Line 17: |
| There are several extended commands: | There are several subcommands: |
| Line 19: | Line 19: |
| * `clear frames` removes all frames from memory and resets the current frame to 'default' | * `clear frames` removes all [[Stata/Frames|frames]] from memory and resets the current frame to 'default' |
| Line 35: | Line 35: |
| [[https://www.stata.com/manuals/dclear.pdf|Stata manual for clear]] | [[https://www.stata.com/manuals/dclear.pdf|Stata manual for -clear-]] |
Stata Clear
-clear- clears data from memory.
Contents
Usage
clear
There are several subcommands:
clear frames removes all frames from memory and resets the current frame to 'default'
clear mata is equivalent to mata: mata clear
clear results is equivalent to return clear, ereturn clear, sreturn clear, and _return drop _all altogether
clear matrix is equivalent to clear results, matrix drop _all, and estimates drop _all altogether
clear programs is equivalent to program drop _all
clear ado is equivalent to program drop _allado
clear rngstream resets all random number states
clear collect is equivalent to collect clear
clear all and clear * are equivalent to all of the above altogether, except clear rngstream
