Hey guys,
I want to keep only the observations which are untimely by the employee and at the same time timely by the supervisor.observations with only employee should alway be kept when untimely. when supervisor is untimely and the employee, too - dont keep.

Code:
* Example generated by -dataex-.    To install: ssc install dataex
clear
input byte Reportamendednthtimes    str10 Interviewee int(CompanyID    Year)    byte(ResearchproviderID    Untimely)
0 "Supervisor"  50 2008 1 0
0 "Employee"    50 2008 1 0
1 "Supervisor"  50 2008 1 0
1 "Employee"    50 2008 1 1
. ""             .    . . .
0 "Employee"    51 2005 2 1
0 "Employee"    51 2006 3 1
. ""             .    . . .
0 "Supervisor" 200 2009 6 0
0 "Employee"   200 2009 6 1
1 "Supervisor" 200 2010 7 0
1 "Employee"   200 2010 7 0
2 "Supervisor" 200 2010 7 1
2 "Employee"   200 2010 7 1
3 "Supervisor" 200 2010 7 0
3 "Employee"   200 2010 7 0
4 "Supervisor" 200 2010 7 1
4 "Employee"   200 2010 7 0
end