I have a large data-set that contains financial and industry information for companies in 12 different industries, over 22 years. I want to use Stata to give me the 90% percentile value for profits in each of 12 different industries, for each of the 22 different years.
To clarify, i want to determine what profits would be needed to be within the top 10% profitable firms in a given industry.
My approach so far has been to divide the data into subsets of years, and then again by industry, and finally calculate the percentile in income. However, this process is very slow, as it has to be repeated 264 times, and i imagine there has to be a better approach.
Does anyone have any tips or ideas?
To clarify, i want to determine what profits would be needed to be within the top 10% profitable firms in a given industry.
My approach so far has been to divide the data into subsets of years, and then again by industry, and finally calculate the percentile in income. However, this process is very slow, as it has to be repeated 264 times, and i imagine there has to be a better approach.
Does anyone have any tips or ideas?
Comment