For the below sample data, I would like to drop an id if one of its rows contains the value of 7(i.e., id=2, 4, and 5).
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(id year status) 1 2000 1 1 2002 2 1 2004 2 2 2002 1 2 2004 7 3 2000 2 4 2000 1 4 2002 7 5 2000 7 end
Comment