I have a panel data which comprise of firms operating in numerous countries. Some firms may not operate in some countries depending on the year. I would like to generate a variable called "market share instability" that is is measured by the sum of the absolute value of the annual market share changes, divided by the initial market share for each of the leading (top) four firms. The example of the data and the formula for the market share instability can be found below.


Since I have only one industry in my data, "i" can represent the country for my case.
So the numerator gives the summation of market share changes (for instance from 2003 to 2004) of the top leading 4 firms for a chosen country (e.g. China). Denominator gives the initial market share for each of the top 4 firms (i.e. in 2003) in China.
If you could help me with this command, I will be grateful.
|
Since I have only one industry in my data, "i" can represent the country for my case.
So the numerator gives the summation of market share changes (for instance from 2003 to 2004) of the top leading 4 firms for a chosen country (e.g. China). Denominator gives the initial market share for each of the top 4 firms (i.e. in 2003) in China.
If you could help me with this command, I will be grateful.
Comment