Á¦¸ñ
°³ÀÎÀڷḦ Á¾À¸·Î ¿¬µµº° ÇÕÄ¡´Â ¹æ¹ý (7Â÷ ±âÁØ, 13ÆгÎ)
ÀÛ¼ººÎ¼­
ÆгÎÁ¶»çÆÀ
µî·ÏÀÏ
2011/01/03
Á¶È¸¼ö
3111
ÀÛ¼ºÀÚ
ÆгÎÁ¶»çÆÀ
¿¬¶ôó
063-713-6723
³»¿ë
 

Á¾À¸·Î º´ÇÕÇÑ °³ÀÎ ÆгΠµ¥ÀÌÅÍ´Â 05, 13ÆгΠ¸ðµÎ Á¦°øÇÏ°í ÀÖÀ¸¹Ç·Î, Á¦°øµÈ µ¥ÀÌÅ͸¦ »ç¿ëÇÏ¸é µÈ´Ù. ¾Æ·¡ ¼³¸íÀº 13ÆгΠ¿øÇ¥º»ÀÇ 5~7Â÷ ÀڷḦ long form ÇüÅ·Π´ã°í ÀÖ´Ù.

 

  ¿¹¸¦ µé¾î °³ÀÎÀڷḦ Á¾À¸·Î ÇÕÄ¡´Â °æ¿ì, ´ÙÀ½°ú °°Àº ÀýÂ÷¸¦ µû¸¥´Ù.

 

¨ç °¢ Â÷¼ö º°·Î °øÅë Ç׸ñÀ» ÃøÁ¤ÇÏ´Â º¯¼öµéÀ» ÃßÃâÇÑ´Ù.

¨è °¢ ¿¬µµ¿¡ ÀÀ´äÇÑ ÄÉÀ̽ºµé¸¸ ÃßÃâÇÑ´Ù.

¨é °øÅëÇ׸ñÀ» ÃøÁ¤ÇÏ´Â º¯¼öµéÀÇ º¯¼ö ¸íÀ» µ¿ÀÏÇÏ°Ô ÅëÀϽÃŲ´Ù.

¨ê °¢ Â÷¼öº°·Î ±¸ºÐÇÒ ¼ö ÀÖ´Â ´õ¹Ì º¯¼ö¸¦ ¸¸µç´Ù.

¨ë °¢°¢ÀÇ ÀڷḦ Á¾À¸·Î ÇÕÄ£´Ù.

 

/* sas Set¹® È°¿ë */

   data p05; set k.kreisp05;

   if pos13^=1 then delete; else wave=5; 

   keep hid w05hid pid w05age w05inc p05a001 wave;

   rename w05hid=whid w05age=age w05age=inc p05a001=pa001; run;

      

   data p06; set k.kreisp06;

   if pos13^=1 then delete; else wave=6;

   keep hid w06hid pid w06age w06inc p06a001 wave;

   rename w06hid=whid w06age=age w06age=inc p06a001=pa001; run;

 

   data p07; set k.kreisp07;

   if pos13^=1 then delete; else wave=7;

   keep hid w07hid pid w07age w07inc p07a001 wave;

   rename w07hid=whid w07age=age w07age=inc p07a001=pa001; run;

 

   data pl13;

   retain hid whid pid age inc pa001 wave;

   set p05 p06 p07; run;

 

 

/* spss add¹® È°¿ë */ 

get file = "d:\kreis\spss\kreisp05.sav"

/keep = hid w05hid pid w05age w05inc p05a001 pos13

/rename (w05hid=whid) (w05age=age) (w05inc=inc) (p05a001=a001).

 if (pos13=1) wave=5.    

select if wave=5.

save out = "d:\kreis\spss\p05.sav".  

 

get file = "d:\kreis\spss\kreisp06.sav"

/keep = hid w06hid pid w06age w06inc p06a001 pos13

/rename (w06hid=whid) (w06age=age) (w06inc=inc) (p06a001=a001).

 if (pos13=1) wave=6.

select if wave=6.

save out = "d:\kreis\spss\p06.sav".  

 

get file = "d:\kreis\spss\kreisp07.sav"

/keep = hid w07hid pid w07age w07inc p07a001 pos13

/rename (w07hid=whid) (w07age=age) (w07inc=inc) (p07a001=a001).

 if (pos13=1) wave=7.

select if wave=7.

save out = "d:\kreis\spss\p07.sav". 

 

add files

/file = "d:\kreis\spss\p05.sav"

/file = "d:\kreis\spss\p06.sav"

/file = "d:\kreis\spss\p07.sav".

 

save out = "d:\kreis\spss\pl13.sav".  

 

 

/* stata Append¹® È°¿ë */

use "D:\KReIS\STATA\kreisp05.dta", clear

keep if hos13==1

keep hid w05hid pid w05age w05inc p05a001

rename w05hid whid

rename w05age age

rename w05age inc

rename p05a001 pa001;

gen dummy=1

save "D:\KReIS\STATA\p05.dta", replace

 

use "D:\KReIS\STATA\kreisp06.dta", clear

keep if hos13==1

keep hid w06hid pid w06age w06nc p06a001

rename w06hid whid

rename w06age age

rename w06age inc

rename p06a001 pa001;

gen dummy=1

save "D:\KReIS\STATA\p06.dta", replace

use "D:\KReIS\STATA\kreisp07.dta", clear

keep if hos13==1

keep hid w07hid pid w07age w07inc p07a001

rename w07hid whid

rename w07age age

rename w07age inc

rename p07a001 pa001;

gen dummy=1

save "D:\KReIS\STATA\p07.dta", replace

 

use "D:\KReIS\STATA\p05.dta", clear

append using "D:\KReIS\STATA\p06.dta¡°

append using "D:\KReIS\STATA\p07.dta"

order hid whid pid age inc pa001 dummy

save "D:\KReIS\STATA\pl13.dta", replace

¸ñ·Ï
´ÙÀ½±Û
³ëÈÄ»ýÈ°ºñ ¸¶·Ã¹æ¹ý º¯¼ö »ç¿ë½Ã À¯ÀÇ»çÇ× (7Â÷ ±âÁØ)
ÀÌÀü±Û
°¡±¸ÀڷḦ Á¾À¸·Î ¿¬µµº° ÇÕÄ¡´Â ¹æ¹ý