Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Herfindahl index


From   Dawood Ashraf <[email protected]>
To   [email protected]
Subject   st: Herfindahl index
Date   Mon, 11 Jul 2005 16:34:52 +0100

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index