全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
632 1
2017-12-10
这个是我想根据这两个变量作为条件生成新变量 如图所示最后一个,根据交叉表显示,我按照条件分类,应该是有数据被重新分类,但是却显示没有数据得到替换。操作好几遍仍然这样,不知道问题在哪里,请指点
二维码

扫码加我 拉你入群

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

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

全部回复
2017-12-10 15:40:19
. gen x=0

. replace x=1 if standard_Pincome<0 & standard_educ<1
(531 real changes made)

. replace x=1 if 0<standard_Pincome<2 & standard_educ<-0.5
(42 real changes made)

. replace x=3 if 0<standard_Pincome>2 & standard_educ>-0.5
(40 real changes made)

. replace x=3 if 0<standard_Pincome>2 & standard_educ>1
(0 real changes made)

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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