用STATA时候 数据如何MERGE 按某一个ID 如果有这个ID就和原来大数据匹配 没有的话 就舍去该数据
clear
. use "C:\Users\jxf\Desktop\cgss2006处理 1.dta", clear
. keep serial qd10a01 qd10c01
. save spbirthyear, replace
(note: file spbirthyear.dta not found)
file spbirthyear.dta saved
. use "C:\Users\jxf\Desktop\数据处理6.dta", clear
. merge serial using spbirthyear
(note: you are using old merge syntax; see [D] merge for new syntax)
master data not sorted
r(5);
这是我处理过程中的错误指示 那么正确的命令是什么 处理过程中漏了一个变量,这是弥补,想把漏的那个变量加上