Differences between revisions 2 and 3
Revision 2 as of 2023-06-08 19:41:48
Size: 1018
Comment:
Revision 3 as of 2023-06-09 14:24:51
Size: 1035
Comment:
Deletions are marked like this. Additions are marked like this.
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'

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)