Dear all,

unfortunately I am new to Stata and I dont really know how to go ahead. I want to perform a regression with the top 10% of income of each industry each year. I have 10 different industries and 14 years. I thought about creating dummy variables and I already generated dummy variables for the different industries (industry1, industry2, industry3 etc.) and the different years (year1, year2, year3 etc.). But now the problem is, how can I tell Stata to create a dummy of the best 10% of each industry in every year. Or am I thinking to complex and there is another command performing this.

Thank you in advance!

Best regards,

Corn