Hi
I have 7 regions, 17 sectors. I created index and I am going to partition sectors and regions according to index. As you can see List, values are 1.32, 2.99 ....but sectors are 1,2,3,4,5,6,7. So where did come from this numbers? Would anyone assist me, please?
Listed 50 out of 1996970 observations
I have 7 regions, 17 sectors. I created index and I am going to partition sectors and regions according to index. As you can see List, values are 1.32, 2.99 ....but sectors are 1,2,3,4,5,6,7. So where did come from this numbers? Would anyone assist me, please?
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input float(region sector index)
4 3 7
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
4 7 11
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
5 3 8
end
generate index=(region+sector)
collapse sector , by(index)
. list
+------------------+
| index sector |
|------------------|
1. | 1 1 |
2. | 2 1.315152 |
3. | 3 2.990105 |
4. | 4 3.018043 |
5. | 5 3.930294 |
|------------------|
6. | 6 3.256762 |
7. | 7 6.395171 |
8. | 8 6.788081 |
9. | 9 7.196252 |
10. | 10 7.250002 |
|------------------|
11. | 11 7.106759 |
12. | 12 8.343517 |
13. | 13 11.18524 |
14. | 14 9.862413 |
15. | 15 13.13492 |
|------------------|
16. | 16 13.46302 |
17. | 17 13.52856 |
18. | 18 15.02726 |
19. | 19 14.79059 |
20. | 20 16.00764 |
|------------------|
21. | 21 16.91695 |
22. | 23 16 |
23. | 24 17 |
+------------------+
Listed 50 out of 1996970 observations

Comment