PSID Data Preparation

PSID Data Preparation#

transfer_distribution.py modules

ogusa.psid_data_setup#

ogusa.psid_data_setup.prep_data(data='/home/runner/work/OG-USA/OG-USA/ogusa/data/PSID/psid1968to2015.csv.gz')[source]#

This script takes PSID data created from psid_download.R and:

  1. Creates variables at the “tax filing unit” (equal to family unit in PSID since there is no info on the filing status chosen).

  2. Selects a sample of observations to work with (e.g., dropping very old, very low income, etc.).

  3. Computes a measure of lifetime income and places each household into a lifetime income percentile group

Parameters:

data (str) – path to RData file with PSID data

Returns:

household level data with lifetime

income groups defined

Return type:

panel_li (Pandas DataFrame)