Actually you have two different questions in your two posts.
1. As regards to your first question, here is the solution (example):
clear
input id year var1
1 2009 15
1 2011 4
1 2012 9
2 2009 25
2 2010 45
2 2011 17
2 2012 9
3 2011 8
3 2012 58
end
tsset id year
tsfill, full
mvencode _all, mv(0)
2. As regards to your second question, "merge" different tables (data sets) should be your direction:
help merge


雷达卡




京公网安备 11010802022788号







