data ref3; merge ref (in=in1) spouse2; by h_idnum h_hhnum a_famnum; if in1;请问,这句话如何转成Stata语句?我用了
use ref.dta, replace
merge m:m h_idnum h_hhnum a_famnum using spouse2.dta, nolabel,但结果不对。我知道根据一个变量合并文件是这样写的,但这里有3个变量……
还有一句是这样的:
data tmp.cpsmar93;
set ref3 spouse3 other;
转成stata是否这样写:
use ref3.dta,replace
append using spouse3.dta, nolabel
drop _merge
append using other.dta, nolabel