Stata Duplicates

The duplicates command reports on and deletes duplicated cases.


Usage

duplicates drop KEYVARS, force

To drop true duplicated cases (i.e. all values match), try duplicates drop (no variable list).


Stored Results

duplicates report stores the number of unique observations in r(unique_value).

duplicates drop stores the number of rows dropped in r(N_drop)


See also

Stata manual for duplicates


CategoryRicottone

Stata/Duplicates (last edited 2023-06-08 20:30:43 by DominicRicottone)