In the below dataset, I want to randomly delete one of the observations that has the same wage for a given year. For example, I would be happy if Stata randomly drops business a or b for year 93. Do you have any idea?
thanks a lot.
| year | wage | business |
| 93 | 100 | a |
| 93 | 100 | b |
| 94 | 150 | c |
| 95 | 200 | d |
| 95 | 250 | e |
| 96 | 300 | f |
No comments:
Post a Comment