Job Polarization Pseudocode

Job polarization is a study of the shifts in occupations that are high-, middle-, and low-skill as the economy has developed over time and become more technologically advanced. For more in-depth information on the subject, see our page on job polarization.

Below is some example pseudocode to calculate job polarization using the post-2003 format of the occupation code. The resulting calculations will be on a monthly frequency and will reference the respondent’s main job. Note that if using pre-2003 data, occupation will need to be recoded.

Variables: HRMONTH, HRYEAR4, PWSSWGT, PEMLR, PRMJOCC1

If PEMLR is 1 or 2 and PRMJOCC1 is 1 or 2

High-skill = sum(PWSSWGT) by HRMONTH and HRYEAR4

If PEMLR is 1 or 2 and PRMJOCC1 is 3

Low-skill = sum(PWSSWGT) by HRMONTH and HRYEAR4

If PEMLR is 1 or 2 and PRMJOCC1 is 4, 5, 6, 7, 8, 9, 10, 11

Middle-skill=sum(PWSSWGT) by HRMONTH and HRYEAR4