Hi All,
This is my first post. I am a new user of Stata. I have this unique problem. As from the output below, credit rating of securities are getting repeated, throwing the result in absolute jeopardy. The ratings "AAA", "AA+", "AA-" and "BBB+" are getting repeated. I am using Stata 14.2.
Earlier there were more repeated instances. I tried using the command: replace rating = strrtrim(rating). (23 real changes made). Now, when I am repeating the command, I am getting the message (0 real changes made). However, there are still repeats.
Please help.
Thanks in advance.
| YEAR
rating | 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 | Total
-----------+--------------------------------------------------------------------------------------------------------------+----------
AA+ | 0 0 0 0 0 0 0 1 0 0 | 1
AA- | 0 0 0 0 0 0 9 3 4 0 | 16
AAA | 0 0 0 0 0 0 0 0 4 0 | 4
BBB+ | 0 0 0 0 0 0 0 0 0 4 | 4
A | 16 84 112 133 171 171 145 131 183 197 | 1,343
A+ | 12 112 132 170 180 232 222 198 175 183 | 1,616
A- | 8 62 147 271 188 232 189 161 270 262 | 1,790
AA | 15 60 101 104 121 173 133 124 165 152 | 1,148
AA+ | 37 74 35 38 95 124 119 130 150 170 | 972
AA- | 28 80 138 78 175 181 150 147 156 209 | 1,342
AAA | 109 222 179 211 242 223 206 244 308 302 | 2,246
AAA+ | 0 0 0 1 1 0 14 0 0 0 | 16
B | 0 0 12 24 20 15 34 38 26 41 | 210
B+ | 0 0 7 7 13 24 19 38 59 47 | 214
B- | 0 0 0 9 18 18 12 4 16 17 | 94
BB | 0 0 17 34 34 40 78 82 72 91 | 448
BB+ | 0 0 8 52 75 90 146 141 112 99 | 723
BB- | 0 0 11 8 20 28 46 47 55 36 | 251
BBB | 0 8 73 151 152 159 186 186 163 166 | 1,244
BBB+ | 4 40 90 128 145 187 259 209 193 174 | 1,429
BBB- | 0 0 66 107 169 197 183 172 210 206 | 1,310
C | 0 0 0 10 12 17 27 24 30 20 | 140
D | 0 8 15 23 65 73 138 133 157 181 | 793
-----------+--------------------------------------------------------------------------------------------------------------+----------
Total | 229 750 1,143 1,559 1,896 2,184 2,315 2,213 2,508 2,557 | 17,354
This is my first post. I am a new user of Stata. I have this unique problem. As from the output below, credit rating of securities are getting repeated, throwing the result in absolute jeopardy. The ratings "AAA", "AA+", "AA-" and "BBB+" are getting repeated. I am using Stata 14.2.
Earlier there were more repeated instances. I tried using the command: replace rating = strrtrim(rating). (23 real changes made). Now, when I am repeating the command, I am getting the message (0 real changes made). However, there are still repeats.
Please help.
Thanks in advance.
| YEAR
rating | 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 | Total
-----------+--------------------------------------------------------------------------------------------------------------+----------
AA+ | 0 0 0 0 0 0 0 1 0 0 | 1
AA- | 0 0 0 0 0 0 9 3 4 0 | 16
AAA | 0 0 0 0 0 0 0 0 4 0 | 4
BBB+ | 0 0 0 0 0 0 0 0 0 4 | 4
A | 16 84 112 133 171 171 145 131 183 197 | 1,343
A+ | 12 112 132 170 180 232 222 198 175 183 | 1,616
A- | 8 62 147 271 188 232 189 161 270 262 | 1,790
AA | 15 60 101 104 121 173 133 124 165 152 | 1,148
AA+ | 37 74 35 38 95 124 119 130 150 170 | 972
AA- | 28 80 138 78 175 181 150 147 156 209 | 1,342
AAA | 109 222 179 211 242 223 206 244 308 302 | 2,246
AAA+ | 0 0 0 1 1 0 14 0 0 0 | 16
B | 0 0 12 24 20 15 34 38 26 41 | 210
B+ | 0 0 7 7 13 24 19 38 59 47 | 214
B- | 0 0 0 9 18 18 12 4 16 17 | 94
BB | 0 0 17 34 34 40 78 82 72 91 | 448
BB+ | 0 0 8 52 75 90 146 141 112 99 | 723
BB- | 0 0 11 8 20 28 46 47 55 36 | 251
BBB | 0 8 73 151 152 159 186 186 163 166 | 1,244
BBB+ | 4 40 90 128 145 187 259 209 193 174 | 1,429
BBB- | 0 0 66 107 169 197 183 172 210 206 | 1,310
C | 0 0 0 10 12 17 27 24 30 20 | 140
D | 0 8 15 23 65 73 138 133 157 181 | 793
-----------+--------------------------------------------------------------------------------------------------------------+----------
Total | 229 750 1,143 1,559 1,896 2,184 2,315 2,213 2,508 2,557 | 17,354
Comment