Differences between revisions 4 and 5
Revision 4 as of 2025-10-24 17:06:12
Size: 369
Comment: Rewrite
Revision 5 as of 2025-10-24 17:06:27
Size: 374
Comment: Typo
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
See [[Stata/Drop|-drop-]]. See also [[Stata/Drop|-drop-]].

Stata Keep

-keep- subsets cases or variables.

See also -drop-.


Usage

Variables

keep foo bar baz

keep if foo==1

keep in 1/10

Note that variables are not re-ordered by -keep-. See -order- for that functionality.


CategoryRicottone

Stata/Keep (last edited 2025-10-24 17:06:27 by DominicRicottone)