Hi everyone,
I am trying to identify how competitive the area (zip codes) is. I have the market shares of organizations across zip codes.
The HHI is calculated by squaring the market share of each organization in the area.
Thank you for your help.
I am trying to identify how competitive the area (zip codes) is. I have the market shares of organizations across zip codes.
The HHI is calculated by squaring the market share of each organization in the area.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str5 zipcode float market_share "00601" 94.93433 "00601" 3.7898686 "00601" .3377111 "00601" .9380863 "00602" 93.81937 "00602" 4.809576 "00602" 1.3710555 "00603" 1.3475177 "00603" 24.89362 "00603" 15.531915 "00603" 56.80851 "00603" 1.4184397 "00605" 37.735847 "00605" 18.867924 "00605" 43.39622 "00606" 19.980925 "00606" 80.01907 "00610" 66.85678 "00610" 33.14322 "00611" 13.064133 "00611" 86.93587 "00612" .4781997 "00612" 7.735584 "00612" .8720112 "00612" 63.26301 "00612" 8.579466 "00612" 15.583685 "00612" 2.2503517 "00612" 1.2376934 "00613" 16.37931 "00613" 70.97701 "00613" 12.643678 "00614" 17.28972 "00614" 72.66355 "00614" 10.04673 "00616" 5.148515 "00616" 47.92079 "00616" 12.871287 "00616" 34.059406 "00617" .3344968 "00617" .9307737 "00617" .8726004 "00617" 7.35893 "00617" 89.86329 "00617" .6399069 "00622" 100 "00623" 100 "00624" .375728 "00624" 98.60981 "00624" .3193688 "00624" .6950967 "00627" 78.20222 "00627" 17.513758 "00627" .59350383 "00627" .22661056 "00627" 3.463904 "00631" 91.39151 "00631" 8.608491 "00637" 4.571429 "00637" 95.42857 "00638" 4.499487 "00638" 87.99648 "00638" 2.1984465 "00638" 1.568225 "00638" 3.737359 "00641" 2.0793223 "00641" 1.347709 "00641" 88.21717 "00641" 4.3896804 "00641" .9241433 "00641" 3.0419714 "00646" 71.39507 "00646" 2.5791326 "00646" 3.048066 "00646" 2.344666 "00646" 14.771395 "00646" 5.861665 "00647" 100 "00650" .458907 "00650" 1.2828536 "00650" 75.86566 "00650" 22.392574 "00652" 3.4552846 "00652" 18.495935 "00652" 10.162601 "00652" 67.88618 "00653" 1.978022 "00653" 98.02198 "00656" 68.90511 "00656" 5.839416 "00656" 25.255474 "00659" 17.126081 "00659" 79.79899 "00659" .457757 "00659" .4876107 "00659" 2.1295652 "00660" 100 end
Comment