Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2023-06-08 00:58:06
Size: 319
Comment:
Revision 4 as of 2023-06-08 20:17:48
Size: 575
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
== Variables == === Variables ===
Line 23: Line 23:
== Cases == === Cases ===
Line 30: Line 30:
----



== Stored Results ==

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

The drop command is used to subset cases or variables. See also the keep command.


Usage

Variables

drop foo bar baz

Cases

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).


See also

Stata manual for drop


CategoryRicottone

Stata/Drop (last edited 2023-06-08 20:31:05 by DominicRicottone)