±¹¹Î³ëÈĺ¸ÀåÆгΠ°¡±¸ÀÚ·á¿¡¼´Â ¿¬±¸ÀÚµéÀÌ ½ÇÁ¦ ºÐ¼®¿¡¼ ¸¹ÀÌ È°¿ëÇÒ¸¸ÇÑ º¯¼öµéÀ» »ý¼ºÇÏ¿© Á¦°øÇÏ°í ÀÖ´Ù. ´ëÇ¥ÀûÀÎ º¯¼öµéÀÌ ¼Òµæ ¹× ÁöÃâ°ú °ü·ÃµÈ º¯¼öµéÀε¥, ¼Òµæ¿¡¼´Â °¡±¸ÃѼҵæ, °æ»ó¼Òµæ, ½ÃÀå¼ÒµæÀ», ÁöÃâ¿¡¼´Â °¡±¸ÃÑÁöÃâ°ú ¼ÒºñÁöÃâ, ºñ¼ÒºñÁöÃâÀ» ¿¬±¸Áø¿¡¼ »ý¼ºÇÏ¿© Á¦°øÇÏ°í ÀÖ´Ù.
±×·±µ¥ ¿¬±¸ÀÚ¿¡ µû¶ó ¿¬±¸Áø¿¡¼ Á¦°øÇÏ´Â »ý¼ºº¯¼öµéÀ» ´Ù¸¥ ¹æ¹ý1)À¸·Î »ý¼ºÇÏ¿© È°¿ëÇÏ°í ½ÍÀº °æ¿ìµéµµ ÀÖÀ» °ÍÀÌ´Ù. µû¶ó¼ ¿©±â¿¡¼´Â °¢ »ý¼ºº¯¼öµéÀÇ »ý¼º¹æ¹ýÀ» ¼Ò°³ÇÏ°íÀÚ ÇÑ´Ù.
¿ì¼± °¢ »ý¼ºº¯¼ö´Â ´ÙÀ½°ú °°Àº º¯¼öµéÀÇ ÇÕÀ¸·Î ÀÌ·ç¾îÁø´Ù.
ÃѼҵæ=°æ»ó¼Òµæ+ºñ°æ»ó¼Òµæ(±âŸ¼Òµæ) °æ»ó¼Òµæ=½ÃÀå¼Òµæ+°øÀûÀÌÀü¼Òµæ ½ÃÀå¼Òµæ=±Ù·Î¼Òµæ+±ÝÀ¶¼Òµæ+ºÎµ¿»ê¼Òµæ+»çÀûÀÌÀü¼Òµæ
ÃÑÁöÃâ=¼ÒºñÁöÃâ+ºñ¼ÒºñÁöÃâ ¼ÒºñÁöÃâ=½Äºñ+ÁÖ°Å ¹× ±¤¿¼öµµºñ+ÇǺ¹ºñ+±³Åë¤ýÅë½Åºñ+¹®È»ýÈ°ºñ+º¸°ÇÀÇ·áºñ+°¡±¸Áý±â±¸ÀÔºñ+±³À°ºñ+±âŸ¼Òºñ ºñ¼ÒºñÁöÃâ=´ëÃâÀÌÀÚ»óȯ+»ýÈ°º¸Á¶±Ý(¼Û±Ý±³À°ºñ)+»ýÈ°º¸Á¶±Ý(¼Û±Ý»ýÈ°ºñ)+»ýÈ°º¸Á¶±Ý(±âŸ)+°¢Á¾¼¼±Ý+»çȸº¸Çè·á+°¢Á¾ ºÎ´ã±Ý ¹× ¹ú°ú±Ý |
À̶§, °¢ »ý¼ºº¯¼öµéÀ» ±¸¼ºÇÏ´Â ¼¼ºÎ º¯¼öµéÀÇ °ªÀÌ Çϳª¶óµµ -9(¹«ÀÀ´ä)°¡ ÀÖ´Ù¸é »ý¼ºº¯¼ö ¶ÇÇÑ -9°ªÀÌ µÇ´Â °ÍÀ¸·Î ±¸¼ºÇÏ¿´´Ù. ±× ¿¹·Î 3Â÷³âµµ °¡±¸ÀÚ·á¿¡¼ ¼Òµæ°ú °ü·ÃµÈ »ý¼ºº¯¼ö¸¦ »ý¼ºÇϱâ À§ÇÑ ÀýÂ÷´Â ´ÙÀ½°ú °°´Ù.
/* sas ÇÁ·Î±×·¥*/
data a;set k.kreish07;
keep h07d008 h07d010 h07d012 h07d014 h07d016 h07d018 inc1 inc2 inc3;
/*½ÃÀå¼Òµæ*/inc1=sum(h07d008, h07d010, h07d012, h07d016);
/*°æ»ó¼Òµæ*/inc2=sum(h07d008, h07d010, h07d012, h07d014, h07d016);
/*ÃѼҵæ*/inc3=sum(h07d008, h07d010, h07d012, h07d014, h07d016, h07d018);
if h07d008=-9 or h07d010=-9 or h07d012=-9 or h07d016=-9 then inc1=-9;
if h07d008=-9 or h07d010=-9 or h07d012=-9 or h07d014=-9 or h07d016=-9 then inc2=-9;
if h07d008=-9 or h07d010=-9 or h07d012=-9 or h07d014=-9 or h07d016=-9 or h07d018=-9 then inc3=-9;
run;
/* spss ÇÁ·Î±×·¥*/
get file='D:\KReIS\SPSS\kreish07.sav¡¯
/keep=h07d008 h07d010 h07d012 h07d014 h07d016 h07d018.
/*½ÃÀå¼Òµæ*/
compute inc1=sum(h07d008, h07d010, h07d012, h07d016).
/*°æ»ó¼Òµæ*/
compute inc2=sum(h07d008, h07d010, h07d012, h07d014, h07d016).
/*ÃѼҵæ*/
compute inc3=sum(h07d008, h07d010, h07d012, h07d014, h07d016, h07d018).
if (h07d008=-9 or h07d010=-9 or h07d012=-9 or h07d016=-9) inc1=-9.
if (h07d008=-9 or h07d010=-9 or h07d012=-9 or h07d014=-9 or h07d016=-9) inc2=-9.
if (h07d008=-9 or h07d010=-9 or h07d012=-9 or h07d014=-9 or h07d016=-9 or h07d018=-9) inc3=-9.
missing values inc1 to inc3 (-9).
/* stata ÇÁ·Î±×·¥*/
clear
set mem 300m
use "D:\KReIS\STATA\kreish07.dta", clear
keep h07d008 h07d010 h07d012 h07d014 h07d016 h07d018
/*½ÃÀå¼Òµæ*/
egen inc1=rowtotal(h07d008 h07d010 h07d012 h07d016)
/*°æ»ó¼Òµæ*/
egen inc2=rowtotal(h07d008 h07d010 h07d012 h07d014 h07d016)
/*ÃѼҵæ*/
egen inc3=rowtotal(h07d008 h07d010 h07d012 h07d014 h07d016 h07d018)
replace inc1=-9 if h07d008==-9 | h07d010==-9 | h07d012==-9 | h07d016==-9
replace inc2=-9 if h07d008==-9 | h07d010==-9 | h07d012==-9 | h07d014==-9 | h07d016==-9
replace inc3=-9 if h07d008==-9 | h07d010==-9 | h07d012==-9 | h07d014==-9 | h07d016==-9 | h07d018==-9
1) ¿¹¸¦ µé¾î, ÇöÀç °¡±¸ÀÚ·áÀÇ »ý¼ºº¯¼ö´Â ¼¼ºÎ º¯¼öµéÀÇ °ªÀÌ Çϳª¶óµµ -9°ªÀÌ ÀÖÀ¸¸é »ý¼ºº¯¼ö¸¦ -9·Î ó¸®ÇÏ¿© »ý¼ºÇϴµ¥, ¿¬±¸ÀÇ ÇÊ¿ä¿¡ µû¶ó ÄÉÀ̽º ¼ö º¸ÀüÀ» À§ÇØ À̸¦ 0À¸·Î °£ÁÖÇÏ¿© ÃÑ ÇÕÀ» ±¸ÇÒ ¼öµµ ÀÖÀ» °ÍÀÌ´Ù.