************************** ** Datenaufbereitung ** ************************** log using log\4_Datenaufbereitung.log, replace use data\LIAB_LV1.dta compress ************************** *** Eintagesspells löschen ************************** drop if begepi==endepi ************************* ************************** ***Testen ob Spells über Jahreswechsel hinweg laufen ************************** /*01.01.1993*/ *count if begepi < 12054 & endepi >= 12054 /*01.01.1994*/ *count if begepi < 12419 & endepi >= 12419 /*01.01.1995*/ *count if begepi < 12784 & endepi >= 12784 /*01.01.1996*/ *count if begepi < 13149 & endepi >= 13149 /*01.01.1997*/ *count if begepi < 13515 & endepi >= 13515 /*01.01.1998*/ *count if begepi < 13880 & endepi >= 13880 /*01.01.1999*/ *count if begepi < 14245 & endepi >= 14245 /*01.01.2000*/ *count if begepi < 14610 & endepi >= 14610 /*01.01.2001*/ *count if begepi < 14976 & endepi >= 14976 /*01.01.2002*/ *count if begepi < 15341 & endepi >= 15341 /*01.01.2003*/ *count if begepi < 15706 & endepi >= 15706 /*01.01.2004*/ *count if begepi < 16071 & endepi >= 16071 /*01.01.2005*/ *count if begepi < 16437 & endepi >= 16437 /*01.01.2006*/ *count if begepi < 16802 & endepi >= 16802 /*01.01.2007*/ count if begepi < 17167 & endepi >= 17167 *tab quelle if begepi < 12054 & endepi >= 12054 *tab quelle if begepi < 12419 & endepi >= 12419 /* Bei den Betroffenen handelt es sich um Leistungs- und nicht Beschäftigungsmeldungen*/ ************************** *** Erzeuge Jahresdummies ************************** forvalues x = 1995/2007 { gen y`x'=(jahr==`x') } ************************* *** Erzeuge Bildungsinfo ************************* *Bildung; Referenzgruppe sind Personen ohne Berufsbildung *gen school=ausbild==1|ausbild==3 /* ohne Berufsausbildung */ *label var school "Keine Berufsausbildung" *gen vocat=ausbild==2 /* Haupt/Real mit Berufsausbildung */ *label var vocat "Haupt/Real mit Berufsausbildung" *gen alec_voc=ausbild==4 /* Abi mit Berufsausbildung */ *label var alec_voc "Abi mit Berufsausbildung" *gen uni=ausbild==5|ausbild==6 /* Uni-Abschluss */ *label var uni "Uni-Abschluss" ************************* *** Alter ************************* gen alter = jahr-gebjahr drop gebjahr *** Personen unter 16 und über 66 Jahren raus ***Übersicht Informationen für Beschäftigte über 60/65 sum sum if alter>=60 sum if alter>=66 drop if alter<=15 | alter>=66 gen alter2 = alter^2 ************************* *** Lohn ************************* gen lohn = tag_entg label var lohn "Bruttotageslohn" drop tag_entg ***************************** *** Beitragsbemessungsgrenzen ***************************** replace lohn=. if lohn<10.56 & jahr==2000 & west==1 replace lohn=. if lohn<10.59 & jahr==2001 & west==1 replace lohn=. if lohn<10.68 & jahr==2002 & west==1 replace lohn=. if lohn<13.15 & jahr==2003 & west==1 replace lohn=. if lohn<13.11 & jahr==2004 & west==1 replace lohn=. if lohn<13.15 & jahr==2005 & west==1 replace lohn=. if lohn<13.15 & jahr==2006 & west==1 replace lohn=. if lohn<13.15 & jahr==2007 & west==1 replace lohn=. if lohn<10.56 & jahr==2000 & west==0 replace lohn=. if lohn<10.59 & jahr==2001 & west==0 replace lohn=. if lohn<10.68 & jahr==2002 & west==0 replace lohn=. if lohn<13.15 & jahr==2003 & west==0 replace lohn=. if lohn<13.11 & jahr==2004 & west==0 replace lohn=. if lohn<13.15 & jahr==2005 & west==0 replace lohn=. if lohn<13.15 & jahr==2006 & west==0 replace lohn=. if lohn<13.15 & jahr==2007 & west==0 replace lohn=. if lohn>144.17 & jahr==2000 & west==1 replace lohn=. if lohn>146.24 & jahr==2001 & west==1 replace lohn=. if lohn>147.95 & jahr==2002 & west==1 replace lohn=. if lohn>167.67 & jahr==2003 & west==1 replace lohn=. if lohn>168.85 & jahr==2004 & west==1 replace lohn=. if lohn>170.96 & jahr==2005 & west==1 replace lohn=. if lohn>172.60 & jahr==2006 & west==1 replace lohn=. if lohn>172.60 & jahr==2007 & west==1 replace lohn=. if lohn>119.02 & jahr==2000 & west==0 replace lohn=. if lohn>122.71 & jahr==2001 & west==0 replace lohn=. if lohn>123.29 & jahr==2002 & west==0 replace lohn=. if lohn>139.73 & jahr==2003 & west==0 replace lohn=. if lohn>142.62 & jahr==2004 & west==0 replace lohn=. if lohn>144.66 & jahr==2005 & west==0 replace lohn=. if lohn>144.66 & jahr==2006 & west==0 replace lohn=. if lohn>149.59 & jahr==2007 & west==0 ********************* *** Arbeitslose raus* ********************* replace lohn=. if leistart==1 | leistart==2 ********************* *** Inflationsbereinigung mit Basisjahr 2005 (StaBu Verbraucherpreisindex) ******************** replace lohn = lohn/0.927 if jahr==2000 replace lohn = lohn/0.945 if jahr==2001 replace lohn = lohn/0.959 if jahr==2002 replace lohn = lohn/0.969 if jahr==2003 replace lohn = lohn/0.985 if jahr==2004 replace lohn = lohn/1.016 if jahr==2006 replace lohn = lohn/1.039 if jahr==2007 ********************* *** Dummies für Stellung im Beruf ********************* /*gen trainee=berstell==0 gen unskil=berstell==1 gen blue=berstell==2 gen mastercraft=berstell==3 gen white=berstell==4 gen homew=berstell==7 gen partt1=berstell==8 gen partt2=berstell==9 */ *Lohn von Teilzeitbeschäftigten und Heimarbeitern auf missing setzen replace lohn=. if berstell==7 replace lohn=. if berstell==8 replace lohn=. if berstell==9 *********************** ***** Umkodierung Geschlecht *********************** replace geschl=0 if geschl==1 replace geschl=1 if geschl==2 label define geschl 0 "männlich" 1 "weiblich" label value geschl geschl ********************* ***Spelldauern berechnen - nicht in Testdaten ********************* gen spdauer = endepi-begepi+1 save data\LIAB_LV1.dta, replace clear log close