Dear Statalist-Community,
I am looking for a way to generate a dummy variable which needs to show the value "1" for reflecting the membership in the top decile group of brokerage houses regarding the number of employed analysts in year t and else "0". Where the "top" decile (top 10%) is defined as having the most analysts employed. The data set is a panel with years, analysts, brokerage houses, firms and forecasts etc.
I have already created an auxiliary variable "b_employees" which shows the number of analysts a broker employs in t. This number can be different from year to year. Now with that variable as basis, a new variable reflecting the above mentioned deciles should be created and a decile number being assigned to the observations.The top decile brokers having "1" assigned, while all other borkers get "0".
I am using Stata 12.1
Thanks in advance.
Thomas
I am looking for a way to generate a dummy variable which needs to show the value "1" for reflecting the membership in the top decile group of brokerage houses regarding the number of employed analysts in year t and else "0". Where the "top" decile (top 10%) is defined as having the most analysts employed. The data set is a panel with years, analysts, brokerage houses, firms and forecasts etc.
I have already created an auxiliary variable "b_employees" which shows the number of analysts a broker employs in t. This number can be different from year to year. Now with that variable as basis, a new variable reflecting the above mentioned deciles should be created and a decile number being assigned to the observations.The top decile brokers having "1" assigned, while all other borkers get "0".
I am using Stata 12.1
Thanks in advance.
Thomas
Comment