Long-Term Unemployment Pseudocode

Long-term unemployment (unemployed 27 weeks or more) can be calculated using the variable PELKDUR, which asks respondents to the CPS about the duration of their job seeking. Individuals answer in weeks with the highest allowable value set at 119 as of the most recent format of the CPS. Another variable, PELKLWO, allows researchers to break down the unemployed by when the last time they had a job was. The end result of these calculations will be a monthly time series with the number of individuals in each category per month.


Variables: HRMONTH, HRYEAR4, PWSSWGT, PEMLR, PELKDUR, PELKLWO

If PEMLR is 3 or 4 and PELKDUR < 27

Short-term unemployed=sum(PWSSWGT) by HRMONTH and HRYEAR4

If PEMLR is 3 or 4 and PELKDUR > 26

Long-term unemployed=sum(PWSSWGT) by HRMONTH and HRYEAR4

If PEMLR is 3 or 4 and PELKDUR > 26 and PELKLWO is 1

Long-term unemployed, last worked <12 mo. ago =sum(PWSSWGT) by HRMONTH and HRYEAR4

If PEMLR is 3 or 4 and PELKDUR > 26 and PELKLWO is 2

Long-term unemployed, last worked >12 mo. ago =sum(PWSSWGT) by HRMONTH and HRYEAR4

If PEMLR is 3 or 4 and PELKDUR > 26 and PELKLWO is 3

Long-term unemployed, never worked =sum(PWSSWGT) by HRMONTH and HRYEAR4