Hello, I'm returning to Stata after a long hiatus and have forgotten much of my previous knowledge. I have a data set of demographic information of every country for the past 10 years, and want to use it to predict the next year's data for one or two variables. I know this is panel data, but am unsure how to regress the demographic info, predict the near year's data, and then input it as a new variable (presumably by adding it to the previous year's value). A sample of my data is below. I used reshape long to reach it's current format:
year= year between 2006 and 2015
country_num = numerical country code
sur = number of surviving infants for that country and year
cbr = crude birth rate for that country and year
country_num | year | sur | cbr
2 | 2006 | 1044049 | 43.9
2 | 2014 | 864078 | 34.83
2 | 2015 | 844474 | 33.98
4 | 2007 | 35421 | 12.12
4 | 2013 | 34920 | 11.91
4 | 2015 | 34839 | 11.87
Thank you!
year= year between 2006 and 2015
country_num = numerical country code
sur = number of surviving infants for that country and year
cbr = crude birth rate for that country and year
country_num | year | sur | cbr
2 | 2006 | 1044049 | 43.9
2 | 2014 | 864078 | 34.83
2 | 2015 | 844474 | 33.98
4 | 2007 | 35421 | 12.12
4 | 2013 | 34920 | 11.91
4 | 2015 | 34839 | 11.87
Thank you!
Comment