各位大神:版规我看到了,我觉得这个问题比较简单,麻烦大家给看看。谢啦
数据:2个变量group201612=1,2,3
bebm1=1,2,3
目的是把group200612=1且bebm1=1的分成一组,我用了下面的方法,结果运行结果是:
invalid syntax
r(198);
gen fenzu=1 if group200612=1 & bebm1=1
replace fenzu=2 if group200612=1 & bebm1=2
replace fenzu=3 if group200612=1 & bebm1=3
replace fenzu=4 if group200612=2 & bebm1=1
replace fenzu=5 if group200612=2 & bebm1=2
replace fenzu=6 if group200612=2 & bebm1=3
谢谢各位大神啦!!