Tips 25:reshape改变数据格式

标签:
数据格式杂谈 |
分类: 数据管理 |
【问题】
有时候需要面板数据,但是数据又不是stata识别的格式,就需要重新调整。
【方法】
这时候reshape还是很方便的。
【例子】
很简明的例子:
http://s7/middle/629bb758hb5d4fe23c646&69025:reshape改变数据格式" TITLE="Tips
*上面变成下面的命令:
reshape long inc, i(id) j(year)
*下面变成上面的命令:
reshape wide inc, i(id) j(year)