How can I control for the initial year in r?
I have an econometrics regression with some variables where I want to add an initial year "2000" using [R].
Let's say my data sample covers the period between 2000 - 2019. Assume I am to measure of Green Filed FDI inward investments on GDP growth. I will add my variables, including the controlling variables to the right side of the equation, but among the controlling variables, I would like to add an initial year for the GDP growth "2000".
Thanks a lot for your reply and answer.
Yes that is true. I want the to add a variable that covers all countries in my dataset but during one year "2000".
Thanks for the reply. Not exactly. I will clearly.
From the above dataset I want to create a column that has the gdp % for the year 1952 only. So, the init_year column will have the value of gdp % during 1952 " 0.779" for all Afghanistan country cells (same value). As I movie down to another country, the column will display the gdp % value in 1952 in all other years for the second country.