±¹¹Î³ëÈĺ¸ÀåÆгÎÀº °¡±¸ÀÚ·á¿¡¼ °¡±¸Àüü ¼ÒµæÀ» Á¶»çÇÔ°ú µ¿½Ã¿¡, °³ÀÎÁ¶»ç´ë»óÀÚµéÀÇ ¼Òµæ ¶ÇÇÑ °³ÀÎÀÚ·á¿¡¼ ¹¯°í ÀÖ´Ù. 1¢¦2Â÷³âµµ ÀÚ·á¿¡´Â ºÎºÎ´ÜÀ§(±ÍÇÏ ¹× ±ÍÇÏÀÇ ¹è¿ìÀÚ)·Î ÃøÁ¤ÇÑ Ç׸ñ(±ÝÀ¶¼Òµæ, ºÎµ¿»ê¼Òµæ, »çÀûÀÌÀü¼Òµæ µî)ÀÌ Àֱ⠶§¹®¿¡, ÀÌ·¯ÇÑ º¯¼öÀÇ °æ¿ì ÀÀ´äÀÚ¿Í ÀÀ´äÀÚ ¹è¿ìÀÚ ¸ðµÎ¿¡°Ô °°Àº °ªÀÌ ºÎ¿©µÇ¾î ÀÖ´Ù. µû¶ó¼ 1¢¦2Â÷³âµµ ÀÚ·áÀÇ °æ¿ì ºÎºÎ´ÜÀ§·Î ÃøÁ¤ÇÑ Ç׸ñ¿¡¼´Â °³ÀδÜÀ§ÀÇ ¼ÒµæÀ» ÆľÇÇϱâ´Â ¾î·Á¿ì¸ç, ºÎºÎ´ÜÀ§ÀÇ ¼Òµæ¸¸ÀÌ Æľǰ¡´ÉÇÏ´Ù.
¸¸¾à 2Â÷³âµµ °¡±¸¿¡ ¼ÓÇÑ 50´ë ÀÌ»ó ¸ðµç °¡±¸¿øÀÇ ±ÝÀ¶¼ÒµæÀ» ±¸ÇÑ ´ÙÀ½ °¡±¸Á¤º¸¿Í ¸ÓÁöÇÏ¿© È°¿ëÇÑ´Ù°í ÇÏÀÚ. ÀÌ °æ¿ì ºÎºÎ Áß ÇÑ »ç¶÷ÀÇ ÀڷḸÀ» ÃßÃâÇÏ¿© ºÐ¼®ÇØ¾ß Çϴµ¥, ¡®ºÎºÎÃßÃâ±âÁØ¡¯ º¯¼öÀÇ °ªÀÌ 1·Î ºÎ¿©µÈ »ç¶÷ÀÇ Á¤º¸¸¦ ÃßÃâÇÏ¿© »ç¿ëÇÏ¸é µÈ´Ù. ¹°·Ð 3Â÷³âµµ ÀÚ·áºÎÅÍ´Â ¸ðµÎ °³ÀδÜÀ§·Î Áú¹®Ç߱⠶§¹®¿¡ ÀÌ·¯ÇÑ ¼ö°í¸¦ ´ú ¼ö ÀÖ´Ù. À̶§ ÀýÂ÷´Â ´ÙÀ½°ú °°´Ù.
¨ç 2Â÷ °³ÀÎÀÚ·á¿¡¼ 2Â÷³âµµ¿¡ ÀÀ´äÇÑ °³ÀÎÁ¶»ç´ë»óÀÚ¸¸À» ÃßÃâÇÑ´Ù.
¨è ±ÝÀ¶¼ÒµæÀÌ ¾ø´Ù°í ÀÀ´äÇÑ ºÎºÎ´ÜÀ§ ¼¼Æ®¸¦ »èÁ¦ÇÑ´Ù.
¨é ºÎºÎÃßÃâ±âÁØ º¯¼ö°¡ 0ÀÎ °³ÀÎÀ» »èÁ¦ÇÑ´Ù.
/* sas if¹®ÀÇ È°¿ë*/
data a;set k.kreisp02;
keep w02hid pid w02psvy w02cref p02g011 p02g012; /*ÇÊ¿äÇÑ º¯¼ö¸¸ ³²±â±â*/
if w02psvy^=1 then delete; /*2Â÷³âµµ ÀÀ´äÀÚ¸¸ ³²±â±â*/
if p02g011^=1 then delete; /*±ÝÀ¶¼Òµæ ÀÖ´Ù°í ÇÑ °³Àθ¸ ³²±â±â*/
if w02cref^=1 then delete; /*ºÎºÎÃßÃâ±âÁØ 1ÀÎ »ç¶÷¸¸ ÃßÃâ*/
if p02g012=-9 then delete; /*±ÝÀ¶¼Òµæ ¹«ÀÀ´ä »èÁ¦*/
proc sort;by w02hid; /*2Â÷ °¡±¸¹øÈ£·Î Á¤·Ä*/
run; /*ÀÌÈÄ 2Â÷ °¡±¸ÀÚ·á¿Í ¸ÓÁö*/
/* spss select if¹®ÀÇ È°¿ë*/
get file='D:\KReIS\SPSS\kreisp02.sav'
/keep w02hid pid w02psvy w02cref p02g011 p02g012. /*ÇÊ¿äÇÑ º¯¼ö¸¸ ³²±â±â*/
select if (w02psvy = 1) & (p02g011 = 1) & (w02cref = 1) & (p02g012 ~=-9).
exe.
sort cases by w02hid.
save out ='D:\KReIS\SPSS\a.sav'
compressed. /*ÀÌÈÄ 2Â÷ °¡±¸ÀÚ·á¿Í ¸ÓÁö*/
/* stata drop if (keep if)¹®ÀÇ È°¿ë*/
clear
set mem 300m
use "D:\KReIS\STATA\kreisp02.dta", clear
keep w02hid pid w02psvy w02cref p02g011 p02g012 /*ÇÊ¿äÇÑ º¯¼ö¸¸ ³²±â±â*/
drop if w02psvy~=1 /*2Â÷³âµµ ÀÀ´äÀÚ¸¸ ³²±â±â*/
drop if p02g011~=1 /*±ÝÀ¶¼Òµæ ÀÖ´Ù°í ÇÑ °³Àθ¸ ³²±â±â*/
drop if w02cref~=1 /*ºÎºÎÃßÃâ±âÁØ 1ÀÎ »ç¶÷¸¸ ÃßÃâ*/
drop if p02g012==-9 /*±ÝÀ¶¼Òµæ ¹«ÀÀ´ä »èÁ¦*/
sort w02hid
save "D:\KReIS\STATA\a.dta", replace /*ÀÌÈÄ 2Â÷ °¡±¸ÀÚ·á¿Í ¸ÓÁö*/