copy starting from the next line -----------------------
然后Listed 100 out of 35720 observations
Use the count() option to list more
. local i "1 2 3 4 5 6 7 8 9 10 11 12"
. 
. forvalues i=1/12 {
  2. 
. recode qp506_a_`i' (-8 -2 -1 .=0)
  3. 
. }
. egen x=rowtotal(qp506_a_1-qp506_a_12)
数据例子如上表,我首先写了个循环对数据的负值和零值进行处理,然后对上述变量使用egen搭配rowtotal进行求和,奇怪的是,求出的和有负的,我想问一下为什么会出现这个情况,在对另外一列变量执行上述操作却没有出现这种情况,所以想请教下原因。谢谢!