|
Size: 319
Comment:
|
← Revision 6 as of 2025-10-24 17:05:10 ⇥
Size: 496
Comment: Rewrite
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| The '''`drop`''' command is used to subset cases or variables. See also the [[Stata/Keep|keep]] command. | '''`-drop-`''' subsets cases or variables. See also [[Stata/Keep|-keep-]]. |
| Line 13: | Line 15: |
== Variables == |
|
| Line 19: | Line 17: |
drop if foo==1 drop in 1/10 |
|
| Line 20: | Line 22: |
---- |
|
| Line 23: | Line 27: |
| == Cases == | == Stored Results == |
| Line 25: | Line 29: |
| {{{ drop if foo==1 drop in 1/10 }}} |
The number of dropped rows is stored in `r(N_drop)`. The number of dropped variables is stored in `r(k_drop)`. ---- == See also == [[https://www.stata.com/manuals/ddrop.pdf|Stata manual for -drop-]] |
Stata Drop
-drop- subsets cases or variables.
See also -keep-.
Contents
Usage
drop foo bar baz drop if foo==1 drop in 1/10
Stored Results
The number of dropped rows is stored in r(N_drop).
The number of dropped variables is stored in r(k_drop).
