********************************************************** ** Burauel et al. 2019 - Minimum Wage and Working Hours ** ********************************************************** * Sample Selection * ******************** ** Generate: Informationen missing cap generat missing_change_2 = . replace missing_change_2 = . foreach var of varlist $change_2 { replace missing_change_2= 1 if missing(`var') } *********************** ** Sample Eingrenzen ** *********************** cap drop eligible_help cap drop sample_AZ generate eligible_help = 1 if inlist(lmstatus, 1,2,3,5,8,9) // 8, 9: sector-spec. MW, <8,5, >=8,5 respectively generate sample_AZ = 1 if inlist(empst,1,2,4) replace sample_AZ = .a if sample_AZ == 1 & missing(hrlywge4, treat,hours_contr_w) replace sample_AZ = .a if sample_AZ == 1 & phrf==0 replace sample_AZ = .b if sample_AZ == 1 & eligible_help!=1 replace sample_AZ = .b if sample_AZ == 1 & eligible!=1 ** End Sample Cross-Section replace sample_AZ = .c if sample_AZ == 1 & missing(f.eligible, f.hrlywge4) replace sample_AZ = .d if sample_AZ == 1 & inrange(f.lmstatus,10,13) replace sample_AZ = .e if sample_AZ == 1 & (missing_change==1 | missing_soc==1 | missing_job==1) ** End Sample 1-Year replace sample_AZ = .f if sample_AZ == 1 & missing(f2.eligible, f2.hrlywge4) replace sample_AZ = .g if sample_AZ == 1 & inrange(f2.lmstatus,10,13) replace sample_AZ = .h if sample_AZ == 1 & (missing_change_2==1) ** End Sample 2-Year cap label drop dropout label define dropout 1 "Employed" .a "Hourly wage not determinable" .b "Ineligible" /// .c "Not observed in t+1" /// .d "Lost job in t+1" .e "Missing information in t or t+1" /// .f "Not observed in t+2" .g "Lost job in t+2" .h "Missing information in t+2" label value sample_AZ dropout cap gen sample_cross_AZ = . replace sample_cross_AZ = . replace sample_cross_AZ = 1 if sample_AZ == 1 | inlist(sample_AZ,.c,.d,.e,.f,.g,.h) cap gen sample_AZ_1 =. replace sample_AZ_1 =. replace sample_AZ_1 = 1 if sample_AZ==1 | inlist(sample_AZ,.f,.g , .h ) cap gen sample_AZ_2=. replace sample_AZ_2=. replace sample_AZ_2 = 1 if sample_AZ==1