試了下面的code還是不行:
. . split date ,parse(becameceo)
variable date not found
r(111);
. gen becameceo1=subtri(t,-4,4)
unknown function subtri()
r(133);
這個(gè)是不是可以改改?
. gen becameceo1=substr(year,-4,4)
type mismatch
想了一下這個(gè)應(yīng)該是錯(cuò)的,因?yàn)橐呀?jīng)是數(shù)字格式了
謝謝大家吖