Hello. I have some questions.
I have panel dataset, firm i, industry j, year t.
I have firm's TFP which is log value of firm's total factor productivity.
Firm's TFP growth rate=TFP- l.TFP
Firm i belong to industry j. Industry j's TFP growth rate is as follows.
bysort industry year: egen industrytfpmean=mean (TFP)
gen indstrytfpmeangrowth= industrytfpmean- l.industrytfpmean
Now I have a problem. I would like to caculate the industry k's TFP growth rate (k is not equal to j).
I want to caculate the other industries' TFP growth rate which firm i does not belong to.
Could you please help me?
Thank you in advance.
Related Posts with caculating industry level TFP growth rate
Count observationsHello, I am trying to count observations which have the same value for some variable but different I…
rangejoin reversed?Hi all, Working with two different datasets, and wondering if it is possible to perform rangejoin w…
tsappendCan we do tsappend with some formula. Suppose we have yearly time series up to 2019. I extend 4 obse…
Probability distribution histogram - binomialHello, In case of binomial probability, where n = 100 and p= 0.6. I would like to compute binomial p…
How to Combine Categorical Variables into One Variable?Greetings Stata Users: I am trying to generate a variable that has the categories of the outcome of…
Subscribe to:
Post Comments (Atom)
0 Response to caculating industry level TFP growth rate
Post a Comment