I'm working on a cross-section data set that looks like:
Id Year Age
1 2003 20
1 2003 20
1 2003 20
2 2003 35
2 2003 37
2 2003 42
3 2003 55
3 2003 55
3 2003 55
To reduce measurement error in my sample due to Id assignment error I need to keep only individuals that have the same Age and drop if this condition is not attended.
The output I'm looking for is:
Id Year Age
1 2003 20
1 2003 20
1 2003 20
3 2003 55
3 2003 55
3 2003 55
Do you have any suggestions?