步1:数据作如下排列(excel):province year gdp fdi步2:全选后,打开stata中的data editor窗口,粘贴;步3:在命令框中输入tis yeariis province就可以了下来就可以用xtreg方法了