1、确保你excel的数据中的时间在左列,如图。复制你需要的数据(不包括时间和各省份,仅数据),并打开stata
3、将excel中的时间复制粘贴到stata中
5、数据整理完成为stata分析所需格式。