//面板数据的插值法
xtset city year
*如果保证不会出现负数,则先ln
g lnsqu = log(squ)
g lninvest = log(invest)
by city:ipolate squ year,gen(new_squ) epolate
by city:ipolate invest year,gen(new_invest) epolate
*将ln还原
g wage2=exp(lnwage)
g squ2=exp(lnsqu)
g invest2=exp(lninvest)
g popula2=exp(lnpopula)
有一些是没法插值补充的,就没办法了