Structure of Employment and Measure of Underemployment Source: Slovak Labor Force Survey List of command from P.Castel Employed v. Unemployed {com}. gen unemployed=. {com}. replace unemployed=1 if bb1==2 & bb2==2 {com}. replace unemployed=0 if bb1==1 | bb2==1 {com}. replace unemployed=0 if (bb3>=1 & bb3<=4) | bb3==6 | bb3==8 {com}. replace unemployed=. if unemployed==1 & bb39==2 Employed v. Underemployed {com}. gen underemployed=. {com}. replace underemployed=0 if unemployed==0 {com}. replace underemployed=1 if underemployed==0 & bb3==6 time off for technical or organizational reasons {com}. replace underemployed=1 if underemployed==0 & bb4==2 unpaid leave {com}. replace underemployed=1 if underemployed==0 & bb6==2 & bb7==1 temporary casual or seasonal job and were not able to find a permanent job {com}. replace underemployed=1 if underemployed==0 & bb14==2 & (bb15==1 | bb15==2 ) part-time & cannot find suitable full-time work or at the initiative of the employer (work shortage) {com}. replace underemployed=1 if underemployed==0 & bb18==1 & (bb19==4) below contracted hours and for technical or organizational reasons {com}. replace underemployed=0 if underemployed==1 & bb22==2 & bb39==2 excluding not looking for additional work and not looking for any job {com}. gen mainwork=. {com}. replace mainwork=0 if unemployed==0 {com}. replace mainwork=1 if bb13==1 public wage employees {com}. replace mainwork=2 if bb13>1 & bb13<=4 private wage employees {com}. replace mainwork=3 if bb13==5 cooperative members {com}. replace mainwork=4 if bb13==6 self-employed {com}. replace mainwork=5 if bb13==7 entrepreneurs/owners {com}. replace mainwork=6 if bb13>=8 & bb13<=9 unpaid and unclassifiable {com}. replace mainwork=7 if mainwork==5 & bb13a>5 & bb13a!=. entrepreneurs with 5 or more employees additional classification from informatio on hh {com}. egen Maxjob = max(mainwork), by(hhid) {com}. egen Minjob = min(bb13), by(hhid) {com}. tab Maxjob Minjob if mainwork==0 {com}. replace mainwork=6 if mainwork==0 & Minjob>3 & Minjob<8 {txt}(9 real changes made) {com}. replace mainwork=6 if mainwork==0 & Maxjob>3 & Maxjob<8 {txt}(9 real changes made) Additional unpaid family workers of self/owners {com}. gen nowork=1 if (mainwork==0 | mainwork==.) {com}. gen yearb=10+ quarter if year==96 {com}. replace yearb=20+ quarter if year==99 {com}. replace yearb=30+ quarter if year==0 {com}. gen vhhid= yearb*100000+hhid {com}. gen nowork=1 if mainwork==0 not classified {com}. replace nowork=1 if mainwork==. & unemployed==1 not employed {com}. egen member=count(nowork), by(vhhid) {com}. sort vhhid {com}. gen aides=member if Minjob>=6 & Minjob<=10 & vhhid!=vhhid[_n-1] {com}. tab year quarter, sum( aides) nostand mean * frequency = number of workers {com}. gen fulltime=1 if bb14==1 {com}. replace fulltime=0 if bb14==2 | bb6 ==2 part-time or temporary, casual or seasonal Multi-0job holding answer bb24==1