Dear Statalist,
I have unbalanced panel data for funds from 2000 to 2014. I have monthly observations for the fund's betas but not all funds for the whole period.
fund(id) /// month //// beta
1 /// 2000m10 /// 0,987
1 /// 2000m11 /// 0.654
1 /// 2000m12 /// 1.112
1 /// 2001m1 /// 1.022
1 /// 2000m2 /// 0.944
2 /// 2001m1 /// 0.888
2 /// 2001m2 /// 0.921
2 /// 2001m3 /// 0.765
2 /// 2001m4 /// 0.876
2 /// 2001m5 /// 0.645
2 /// 2001m6 /// 1.213
3 /// 2005m1 /// 1.001
3 /// 2005m2 /// 0.732
Moreover I have a dummy variable indicating if the fund is managed by man or woman at the respective month for which the beta is provided. I want to rank the funds in each month/year period (2000m1, 2000m2, 2000m3, ......) for the entire period 2000 -2014. At the end I want to calculate the share of the women in the different percentiles of betas distribution (top 1%, top 10-40%,middle 20%, bottom 10-40%, bottom 1% ). First I am not sure if the statistics will be correct since there is a different number of observations for each month. And second:
I am not sure which command to use -pctile- or -xtile- and how to obtain the share of women per month in the respective rank
I have used the following command:
egen decile = xtile( Beta), by(month) p(10(10)90)
but it generates only numbers from 1 to 9 and I can not "translate" this in: top1%, top 10-40%,middle 20%, bottom 10-40%, bottom 1%
Any help is appreciated
I have unbalanced panel data for funds from 2000 to 2014. I have monthly observations for the fund's betas but not all funds for the whole period.
fund(id) /// month //// beta
1 /// 2000m10 /// 0,987
1 /// 2000m11 /// 0.654
1 /// 2000m12 /// 1.112
1 /// 2001m1 /// 1.022
1 /// 2000m2 /// 0.944
2 /// 2001m1 /// 0.888
2 /// 2001m2 /// 0.921
2 /// 2001m3 /// 0.765
2 /// 2001m4 /// 0.876
2 /// 2001m5 /// 0.645
2 /// 2001m6 /// 1.213
3 /// 2005m1 /// 1.001
3 /// 2005m2 /// 0.732
Moreover I have a dummy variable indicating if the fund is managed by man or woman at the respective month for which the beta is provided. I want to rank the funds in each month/year period (2000m1, 2000m2, 2000m3, ......) for the entire period 2000 -2014. At the end I want to calculate the share of the women in the different percentiles of betas distribution (top 1%, top 10-40%,middle 20%, bottom 10-40%, bottom 1% ). First I am not sure if the statistics will be correct since there is a different number of observations for each month. And second:
I am not sure which command to use -pctile- or -xtile- and how to obtain the share of women per month in the respective rank
I have used the following command:
egen decile = xtile( Beta), by(month) p(10(10)90)
but it generates only numbers from 1 to 9 and I can not "translate" this in: top1%, top 10-40%,middle 20%, bottom 10-40%, bottom 1%
Any help is appreciated
Comment