Dear Statalisters,
I want to run a panel data regression S on x1,x2, x3, x4. Following prior research, I want to convert all continuous variables to 0-99 percentile ranks.
Panel id: firmid. Time id: year
What I did:
bysort year: egen srank=rank(S)
bysort year: egen x1rank=rank(x1)
sum srank ranges from 1 to 1144
my sample has around 25000 observations.
Question: how do I convert the ranks of all my variables to 0-99 percentile?
Thanks,
Rochelle
I want to run a panel data regression S on x1,x2, x3, x4. Following prior research, I want to convert all continuous variables to 0-99 percentile ranks.
Panel id: firmid. Time id: year
What I did:
bysort year: egen srank=rank(S)
bysort year: egen x1rank=rank(x1)
sum srank ranges from 1 to 1144
my sample has around 25000 observations.
Question: how do I convert the ranks of all my variables to 0-99 percentile?
Thanks,
Rochelle
Comment