1. Tacking the CPS (part 4)

    As a reminder, the CPS interviews households 8 times over the course of 16 months. They're interviewed for 4 months, take 8 months off, and are interviewed four more times. So if your first interview was in month \(m\), you're also interviewed in months

    $$m + 1, m + 2, m + 3, m + 12, m + 13, m + 14, m + 15$$ ...
  2. Tackling the CPS (Part 3)

    As a reminder, we have a dictionary that looks like

             id  length  start  end
    0    HRHHID      15      1   15
    1   HRMONTH       2     16   17
    2   HRYEAR4       4     18   21
    3  HURESPLI       2     22   23
    4   HUFINAL       3     24   26
             ...     ...    ...  ...
    

    giving the columns of the raw CPS data files. This post ...

  3. Tacking the CPS (Part 2)

    We downloaded two types of files last time:

    • CPS monthly tables: a fixed-width format text file with the actual data
    • Data Dictionaries: a text file describing the layout of the monthly tables

    Our goal is to parse the monthly tables. Here's the first two lines from the unzipped January ...

  4. Tackling the CPS

    Before diving in, you should know a bit about the data. I was working with the monthly microdata files from the CPS. These are used to estimate things like the unemployment rate you see reported every month. Since around 2002, about 60,000 households are interviewed 8 times each over ...