Hi all,
I have a panel data that has the following variables: 'firm id'.......'year'.......'Carhart alpha'.
So, for example, I have 100 firms and each has observations from 2000-2013. Every year, I want to assign a fractional rank ranging from 0 to 1 to each fund based on the fund’s alpha.
Thus I want to create a new variable, call it 'Rank', where I can store these ranks.
I would like to ask - how can I perform this in Stata?
Let me, please, introduce a quotation from a paper (this is actually what I want to do):
"The fractional rank at time t for fund i in the bottom performance quintile is defined as LOW(i,t) = Min(Rank(i,t), 0.2), in the three medium performance quintiles as MID(i,t) = Min(0.6, Rank(i,t) − LOWi,t), and in the top performance quintile as HIGH(i,t) = Rank(i,t) − MIDi,t − LOWi,t ...
... where Ranki,t is fund i’s performance percentile".
I appreciate any help on this issue.
I have a panel data that has the following variables: 'firm id'.......'year'.......'Carhart alpha'.
So, for example, I have 100 firms and each has observations from 2000-2013. Every year, I want to assign a fractional rank ranging from 0 to 1 to each fund based on the fund’s alpha.
Thus I want to create a new variable, call it 'Rank', where I can store these ranks.
I would like to ask - how can I perform this in Stata?
Let me, please, introduce a quotation from a paper (this is actually what I want to do):
"The fractional rank at time t for fund i in the bottom performance quintile is defined as LOW(i,t) = Min(Rank(i,t), 0.2), in the three medium performance quintiles as MID(i,t) = Min(0.6, Rank(i,t) − LOWi,t), and in the top performance quintile as HIGH(i,t) = Rank(i,t) − MIDi,t − LOWi,t ...
... where Ranki,t is fund i’s performance percentile".
I appreciate any help on this issue.
Comment