Hi,

I need to compute a variable x corresponding to the first year of an uninterrupted string of 10 positive yearly values of the variable y until the end of the sample for each group z. Could you please explain me which commands I need to use and how to combine them properly? I am a neophyte to STATA and to this forum. So, every suggestions is very valuable.

Thank you,

David