Dear Statalist, I'm quite new to stata and want to investigate the effect population ageing has on economic growth in Japan similar to the work of Maestas et al. (2016).
Therefore, I calculate the growth rates for GDP per capita and the fraction of people aged 65+ from 1995 to 2000, from 2000 to 2005, from 2005 to 2010 and from 2010 to 2015. I do this for all 47 Japanese prefectures and after that I want to run an OLS and an IV regression. Now the problem: I want to include the log of the fraction of persons working in the three major industries as a control variable and the control variable's effect should be allowed to vary by year. My question is: how can I allow the control variable in Stata to vary by year?
Therefore, I calculate the growth rates for GDP per capita and the fraction of people aged 65+ from 1995 to 2000, from 2000 to 2005, from 2005 to 2010 and from 2010 to 2015. I do this for all 47 Japanese prefectures and after that I want to run an OLS and an IV regression. Now the problem: I want to include the log of the fraction of persons working in the three major industries as a control variable and the control variable's effect should be allowed to vary by year. My question is: how can I allow the control variable in Stata to vary by year?
Comment