Dear All, I (actually my friend) have about one thousand observations. A representative subsample is
I wish to replace the numerical ranking to string ranking according to the following transformation
Any suggestions is highly appreciated (w is the desired final result). Thanks.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float x 3 6 9 7 2 2 10 3 8 5 3 6 1 6 6 10 9 6 3 8 1 8 2 . 6 9 7 3 . 9 5 9 6 9 4 7 7 . 1 4 2 . 5 2 3 1 6 1 4 9 end
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float x str5 w 10 "AAA" 9 "AA+" 8 "AA" 7 "AA-" 6 "A+" 5 "A" 4 "A-" 3 "BBB+" 2 "BBB" 1 "BBB-" end
Comment