Thanks everyone for brainstorming with me!
I found this model, which gave me exactly what I was looking for, without using a loop or tsset
http://www.stata.com/support/faqs/data-management/first-and-last-occurrences/
Thanks everyone for brainstorming with me!
I found this model, which gave me exactly what I was looking for, without using a loop or tsset
http://www.stata.com/support/faqs/data-management/first-and-last-occurrences/