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

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


Dawood Ashraf

This mail sent through
*   For searches and help try:

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