Hi all,
I have a big dataset consisting of cities, years, and economic variables with respect to those variables. I want to take the differences in unemployment rates of cities between two years (let's say 2011 and 2015). How can I define a variable so that:
gen difference_11_15_unemployment =
gives the unemployment rate differences between the years 2011 and 2015. Note that my data consist of 20 years, so the variable value of "difference_11_15_unemployment" will be the same for a given city for all observations.
Thank you for your time.
I have a big dataset consisting of cities, years, and economic variables with respect to those variables. I want to take the differences in unemployment rates of cities between two years (let's say 2011 and 2015). How can I define a variable so that:
gen difference_11_15_unemployment =
gives the unemployment rate differences between the years 2011 and 2015. Note that my data consist of 20 years, so the variable value of "difference_11_15_unemployment" will be the same for a given city for all observations.
Thank you for your time.
Comment