stata 修改

//save excel1,replace
use excel1,clear
foreach v of varlist _all{
    local cc=""
    forvalues aa=1/6{
            local cc1=`v'[`aa']
            local cc="`cc'""`cc1'"
    }
    disp `cc'
    //replace `v'="`cc'" in 1
    continue,break
}

 

posted @ 2023-06-01 17:22  myrj  阅读(7)  评论(0编辑  收藏  举报