STATA:快速根据多个变量进行相同的计算
gen xd=1 if A011601==5 local vvar A011602 A011603 A011604 A011605 A011606 A011607 A011608 A011609 A011610 A011611 A011612 A011613 A011614 foreach var of local vvar { replace xd=xd+1 if `var'==5 }