Hi statalist
I am trying to calculate degree of concentration in an industry by using the
Herfindahl index.  I am using the panel data where I have 10 years of time, 50
states, in every state there are a few companies. I am using the following
command
bysort  state: generate HERF= (asset/ sum(asset))^2 if repdte==1997
 
The resulting output use the running sum in the denominator instead of sum of
asset of all companies for year 1997. 
Could any one tell me how can I implement The Herfindahl index in stata in this
situation?
regards
-- 
Dawood Ashraf
--
This mail sent through http://webmail.bangor.ac.uk
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/