Dear Profs and Colleagues,
I am going to compute the average growth rate of one variable over the period 2010-2020. (I mean the growth rate, according to 2 years).
*Variables are in % form. The answer is in the third column, Red values, though I have no idea where they came from.*
Any ideas are appreciated.
I am going to compute the average growth rate of one variable over the period 2010-2020. (I mean the growth rate, according to 2 years).
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double(year_2010 year_2020 growth) str6 Region .099 .217 .073 "Lisboa" .078 .077 -.012 "Centro" .057 .076 .02 "North" end When I apply this code, missing values are generated. gen g_var = D.vari1 / L.vari1 (6 missing values generated)
Any ideas are appreciated.

Comment