drop repeated school`s by years

17 views
Skip to first unread message

Rodrigo Badilla

unread,
Jun 12, 2015, 1:13:00 PM6/12/15
to stata-us...@googlegroups.com
Hi all,

sorry for a cross posting..

I have a little big problem: I have a big dataset (n=6.000.000) with a school variable and year`s variable, i would like drop or flag the schools that repeated in differents years, I tried to use "repeated report" but I failed in these task.

I appreciate any comment.
Thank In advance
Rodrigo

J

unread,
Jun 12, 2015, 1:21:40 PM6/12/15
to stata-us...@googlegroups.com, rodrigo...@gmail.com
I use the command 'duplicates' for this kind of thing. I think it is an add on.

Ramadhani Abdul

unread,
Nov 12, 2015, 10:09:51 AM11/12/15
to Stata Users Forum
Try,

duplicates li school year..... this will list the duplicates in terms of school and year,  if you are ok with the output then use the command duplicates drop school year,force.    NB: make sure you have the backup of the data.
Reply all
Reply to author
Forward
0 new messages