如何利用stata把数据标签改成变量名
2021-01-29 本文已影响0人
松柏林stata
ds
foreach i in `r(varlist)'{
local w : variable label `i'
local w =subinstr("`w'"," ","_",.)
cap rename `i' `w'
}
ds
foreach i in `r(varlist)'{
local w : variable label `i'
local w =subinstr("`w'"," ","_",.)
cap rename `i' `w'
}