cd "C:\Users\Lenovo\OneDrive\写作"
drop _merge
forvalues i = 2002/2014 {
merge 1:1 var1 using "`i'"
drop _merge
}
save 2000-14.dta
cd "C:\Users\Lenovo\OneDrive\写作"
drop _merge
forvalues i = 2002/2014 {
merge 1:1 var1 using "`i'"
drop _merge
}
save 2000-14.dta
本文标题:merge and forvalues in stata
本文链接:https://www.haomeiwen.com/subject/odxqaftx.html
网友评论