I have a rather complicated calculation that I\'m trying to do in Stata.
I have a data set that looks like this:
id year cens city city_income to