全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1722 0
2017-01-01
请问用op法求解tfp,exit怎么求的
下面的程序不明白


. sort firmid year
. by firmid: gen has_gaps = 1 if year[_n-1] != year-1 & _n != 1
. sort firmid has_gaps
. by firmid: replace has_gaps = 1 if has_gaps[_n-1] == 1
. replace has_gaps = 0 if has_gaps == .
. by firmid: generate exit = survivor == 0 & has95 == 0 & has_gaps != 1
> & _n == _N
.replace exit = 0 if exit == 1 & year == 2002

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群