如下,我想把a15为2的样本,一系列变量值都设为空值,已经写了一点了。但涉及变量实在太多,手动写有点耗费时间,请问有没有能批量更改变量值的代码。
replace b17=. if a15==2
replace fu1=. if a15==2
replace fu2=. if a15==2
replace fu3=. if a15==2
replace fu4=. if a15==2
replace fu5=. if a15==2
replace fu6=. if a15==2
replace fu7=. if a15==2