Dear Statalisters,
Your help with the following problem would be highly appreciated! Using Stata version 14.1, I am trying to compute an industry munificence and an industry dynamism variable as described by Misangyi et al. 2006 (pages 581-582, see below for details and link):
"[Industry munificence] was calculated for each year by first regressing the annual average sales in each industry over the 5 years which contained the focal year as a midpoint (i.e., industry munificence for 1995 is based on the regression of sales for the years 1993–97). The regression slope coefficient obtained from this regression was then divided by the mean value of the sales for those years (to adjust for absolute industry size)...
[Industry Dynamism] was measured as the dispersion about the regression line estimated in the regressions used in arriving at the munificence variable just described, by dividing the standard error of the regression slope coefficient by the mean value of sales"
My panel data has the following (rough) structure:
Industry |
firm |
year |
sales |
5010 |
1 |
2000 |
23000 |
5010 |
1 |
2001 |
24000 |
5010 |
1 |
2003 |
30000 |
5230 |
8 |
2001 |
500000 |
5230 |
9 |
2002 |
500 |
5230 |
9 |
2004 |
600 |
5800 |
10 |
2001 |
80000 |
5800 |
10 |
2002 |
81000 |
5800 |
10 |
2003 |
80000 |
Overall, there are about 50 different industries, 4.000 firms, and 14 years for which I have data.
I have no idea about how to set this up in an elegant way without computing everything manually per industry and year. Browsing previous posts did not help.
In case anyone could give advice, please, I would be more than thankful!
Best wishes,
Julia
Misangyi, V. F., H. Elms, T. Greckhamer and J. A. Lepine. 2006. A new perspective on a fundamental debate: a multilevel approach to industry, corporate, and business unit effects. Strategic Management Journal 27 (6): 571-590.
http://onlinelibrary.wiley.com/doi/1...lobalMessage=0