set more 1 /* File: cepr_basic_hours.do Date: Nov 21, 2006 Desc: Creates consistent hours variables for CEPR extract of Basic CPS Note: See copyright notice at end of program. */ /* note: any pre-1994 data processing is not yet correct; use only to process data from 1994 forward */ /* Determine data year */ local year=year in 1 /* collect NBER-style hours variables */ /* actual hours last week */ gen hourslwa=. if 1994<=`year' { /* NBER variable */ * not available } lab var hourslwa "Hours last week, all jobs" notes hourslwa: Unedited notes hourslwa: Available 1979-93 only notes hourslwa: CPS: a-hrsl gen hourslw=. if `year'==1991 { replace hourslw=adhrs1 } if 1994<=`year' & `year'<=2006 { replace hourslw=pehractt replace hourslw=. if pehractt<0 } lab var hourslw "Hours last week, all jobs" notes hourslw: Actual hours worked on all jobs notes hourslw: Edited notes hourslw: CPS: a-hrsl, pehractt /* reason for part-time last week */ gen reason79=. gen reason94=. if 1979<=`year' & `year'<=1993 { if year==1991 {replace reason79=adftreas} if year~=1991 {replace reason79=reasonlw} lab var reason79 "Why <35 hours last week" #delimit ; lab def reason79 1 "Slack work" 2 "Material shortage" 3 "Plant or machine repair" 4 "New job started during week" 5 "Job terminated during week" 6 "Could only find part-time work" 7 "Holiday" 8 "Labor dispute" 9 "Bad weather" 10 "Own illness" 11 "On vacation" 12 "Too busy with school, house" 13 "Did not want full-time work" 14 "Full-time work week is <35 hours" 15 "Other" ; #delimit cr lab val reason79 reason79 } if 1994<=`year' & `year'<=2006 { replace reason94=pehrrsn3 replace reason94=. if reason94<1 replace reason94=. if 13