Hi Stata users,

Do you know how it is possible to sort on maximum value per year and per ticket? For example for year 2011 I have the values A, C and D. But I only what to keep option D. Is this possible with sort or keep if ..? All tips are welcome!

Thank you in advance!