Differences between revisions 1 and 2
Revision 1 as of 2023-06-08 19:41:34
Size: 1019
Comment:
Revision 2 as of 2023-06-08 19:41:48
Size: 1018
Comment:
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
 * `clear all` and `cleawr *` are equivalent to all of the above altogether, ''except'' `clear rngstream`  * `clear all` and `clear *` are equivalent to all of the above altogether, ''except'' `clear rngstream`

Stata Clear

The clear command clears data from memory.


Usage

clear

There are several extended commands:

  • 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


See also

Stata manual for clear


CategoryRicottone

Stata/Clear (last edited 2023-06-09 14:24:51 by DominicRicottone)