I need to merge file rst and file ID_mc together, key variable is mother's ID----IDind_m + wave,but 1:m and m:1 don't work,what should I do? I have been buffled by this problem several days, can't solve this, really wish help.
The first file is:
dataex IDind IDind_m wave in 1/3
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
The second file is:
. dataex in 1/5
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
Code:
use rst1,clear (Written by R. ) . merge m:1 IDind_m wave using ID_mc1 variables IDind_m wave do not uniquely identify observations in the using data r(459); merge 1:m IDind_m wave using ID_mc1 variables IDind_m wave do not uniquely identify observations in the master data r(459);
dataex IDind IDind_m wave in 1/3
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(IDind IDind_m wave) 111101011003 111101011002 2011 111101012003 111101012002 2011 111101013003 111101013002 2011 end
The second file is:
. dataex in 1/5
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(IDind_m IDind_c wave hhid_m hhid_c commid t1 t2) 111101011002 111101011003 2011 111101011 111101011 111101 11 1 111101012002 111101012003 2011 111101012 111101012 111101 11 1 111101013002 111101013003 2011 111101013 111101013 111101 11 1 111101014001 111101014003 2011 111101014 111101014 111101 11 1 111101015002 111101015003 2011 111101015 111101015 111101 11 1 end
Comment