全部版块 我的主页
论坛 休闲区 十二区 灌水吧
487 0
2022-02-10
一、删除hhwage_inc缺失值所在的样本数据
. gen missing1=missing(hhwage_inc)
. keep if missing1==0
(36,456 observations deleted)
. drop missing1
二、计算省份的收入平均值
.by prov_code,sort: egen pvty_depth=mean(total_income)
三、计算相对贫困深度.gen prty_depth=.
. replace prty_depth=0 if total_income>= prov_mean
(23,664 real changes made)
. replace prty_depth= (prov_mean-total_income)/prov_mean if total_income< prov_mean
(46,888 real changes made)


二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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