yayacuiliu 发表于 2013-8-22 15:03 
不好意思再问一下,如果我的code也有重复的,does not uniquely identify the observations;该怎么修改呢 ...
you can change the second part of my above syntax like this:
use mydata, clear
renvars jan1996- dec2012/ value1-value204
egen group=group(code country)
reshape long value, i(group) j(id)
merge m:1 id using tempdate,keep(match) nogen