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)