±¹¹Î³ëÈĺ¸ÀåÆгÎÀº 2Â÷³âµµ ºÎ°¡Á¶»ç·Î °³ÀÎÁ¶»ç´ë»óÀÚÀÇ Á÷¾÷·ÂÀ» Á¶»çÇÏ¿´À¸¸ç, 3Â÷ º»Á¶»çºÎÅÍ °³ÀÎÀÇ Á÷¾÷°ú °ü·ÃµÈ Á¤º¸´Â Á÷¾÷·ÂÀ» ÅëÇØ Á¶»çÇÏ°í ÀÖ´Ù. Á÷¾÷·Â ÀÚ·á¿¡´Â °³ÀÎÁ¶»ç´ë»óÀÚÀÇ ¸¸ 15¼¼ ÀÌÈÄ Á¶»ç½ÃÁ¡ ÇöÀç±îÁö ÀÏÀÚ¸® Á¤º¸°¡ ´ã°Ü ÀÖ´Ù. ¿©±â¿¡´Â ÀÏÀÚ¸® ½ÃÀ۽ñâ, ³¡³ ½Ã±â, Á¾»çÀÚ ¼ö, Á¾»ç»ó ÁöÀ§, ±Ù¹«½Ã°£ ÇüÅÂ, ÁÖ´ç±Ù¹«½Ã°£, ¿ùÆò±Õ ¼Òµæ, »ý¾ÖÁÖµÈ ÀÏÀÚ¸® ¿©ºÎ, ÅðÁ÷»çÀ¯, °øÀû¿¬±Ý ³³ºÎ¿©ºÎ, ÅðÁ÷±Ý ¹Þ¾Ò´ÂÁö ¿©ºÎ, ÅðÁ÷±Ý ÃѾ×, ÅðÁ÷±Ý ÁÖ »ç¿ëó µîÀÇ Á¤º¸°¡ ´ã°Ü ÀÖÀ¸¸ç, Á÷»ê¾÷ ÄÚµå ºÐ·ù¸¦ À§ÇÑ ±â°ü ¶Ç´Â »ç¾÷ü¸í, »ç¾÷üÀÇ ÁÖµÈ È°µ¿, ºÎ¼¸í, ¸ÃÀº ÀÏÀÇ Á¾·ù, Á÷¸í ¶Ç´Â Á÷À§(µ¥ÀÌÅÍ¿¡¼´Â Á¦°øÇÏÁö ¾ÊÀ½) Á¤º¸ ¶ÇÇÑ Á¶»çÇÏ°í ÀÖ´Ù.
À̶§, ¿¬±¸ÁÖÁ¦¿¡ µû¶ó °³ÀÎÀÚ·áÀÇ Á¤º¸¿Í Á÷¾÷·Â ÀÚ·áÀÇ Á¤º¸¸¦ ÇÕÃļ È°¿ëÇØ¾ß ÇÒ °æ¿ì°¡ ÀÖ´Ù. ÀÌ °æ¿ì¿¡´Â °³ÀÎÀÚ·á¿Í Á÷¾÷·Â ÀڷḦ mergeÇÒ ÇÊ¿ä°¡ ÀÖ´Ù. Á÷¾÷·Â ÀÚ·á´Â °³ÀÎÀÇ ÀÏÀÚ¸®¸¦ Çึ´Ù ÇÑ »ç¶÷ÀÇ ¸ðµç Á÷¾÷·ÂÀ» ¾Æ·¡·Î ½×´Â ÇüÅ·Π±¸¼ºµÇ¾î ÀÖÀ¸¹Ç·Î, °³ÀÎÀÚ·á¿Í mergeÇÏ°Ô µÇ¸é Á÷¾÷·Â ÀÚ·áÀÇ ÇüÅÂ¿Í °°ÀÌ ÀÏÀÚ¸® ¼ö¿¡ µû¶ó °³ÀÎÀÌ ¿©·¯ Çà¿¡ ³ªÅ¸³¯ ¼ö ÀÖ´Ù. 3Â÷³âµµ °³ÀÎÀÚ·á¿Í Á÷¾÷·Â ÀڷḦ mergeÇÒ ¶§ ÀýÂ÷´Â ´ÙÀ½°ú °°´Ù.
¨ç °³ÀÎÀÚ·á¿Í Á÷¾÷·Â ÀڷḦ ¸ðµÎ pid ±âÁØÀ¸·Î Á¤·ÄÇÑ´Ù.
¨è µÎ ÀڷḦ mergeÇÏ¿© pid ±âÁØÀ¸·Î ¹´Â´Ù.
ÀÌ °æ¿ì, µ¥ÀÌÅÍ ÇüÅ´ ´ÙÀ½°ú °°ÀÌ ³ªÅ¸³´Ù.
HID PID ¡¦ J001 J002....°³ÀÎ ÀÚ·á º¯¼öµé..
25 1002411 1 1
25 1002411 2 1
25 1002411 3 1
25 1002411 4 1
25 1002411 5 2
25 1002420 1 1
25 1002420 2 1
25 1002420 3 1
/* sas merge¹®ÀÇ È°¿ë*/
data a;
set k.kreisp07; where w07psvy=1;
proc sort; by pid; run;
data a1;set k.kreisjob;
proc sort; by pid; run;
data a2;merge a a1;
if jobnum=. then delete; by pid; run;
/* spss match¹®ÀÇ È°¿ë*/
get file='D:\KReIS\SPSS\kreisp07.sav'.
select if (w07psvy = 1).
sort cases by pid.
save out='D:\KReIS\SPSS\a.sav'.
exe.
get file='D:\KReIS\SPSS\kreisjob.sav'.
sort cases by pid.
match files /file=*
/table='D:\KReIS\SPSS\a.sav'
/by pid.
exe.
save out='D:\KReIS\SPSS\a2.sav'
compressed.
/* stata merge¹®ÀÇ È°¿ë*/
clear
set mem 300m
use "D:\KReIS\STATA\kreisp07.dta", clear
sort pid
save "D:\KReIS\STATA\a.dta", replace
use "D:\KReIS\STATA\kreisjob.dta", clear
sort pid
save "D:\KReIS\STATA\a1.dta", replace
use "D:\KReIS\STATA\a1.dta", clear
merge pid using "D:\KReIS\STATA\a.dta", uniqusing
keep if jobnum~=.
save "D:\KReIS\STATA\a2.dta", replace