PSLmodels / OG-USA

Overlapping-generations macroeconomic model for evaluating fiscal policy in the United States
https://pslmodels.github.io/OG-USA/
Creative Commons Zero v1.0 Universal
19 stars 34 forks source link

Adds number of <18, 18-64, >64 people per household sorted by head age and income bracket, using PSID and CPS data #37

Closed prrathi closed 3 years ago

prrathi commented 3 years ago

The psidhousehold.py and cpshousehold.py files added to the ogusa_calibrate folder contain the scripts that read data- from psid_data_setup.py for PSID and PSL's cps dataset for CPS- and output csv files and images for each one. Per suggestion by @rickecon and @MaxGhenis , the psid.csv and cps.csv files are in their respective folders within ogusa_calibrate/data, and contain ordered by head age and income bracket the average number of people in each age group originally and then after smoothing. The images depict these transformations for each age group of each data type and are outputted to ogusa_calibrate/data/images.

codecov-commenter commented 3 years ago

Codecov Report

Merging #37 (f70a4f3) into master (93cab3d) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #37   +/-   ##
=======================================
  Coverage   63.13%   63.13%           
=======================================
  Files           8        8           
  Lines        1188     1188           
=======================================
  Hits          750      750           
  Misses        438      438           
Flag Coverage Δ
unittests 63.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 93cab3d...f70a4f3. Read the comment docs.

jdebacker commented 3 years ago

I would suggest that the csv and image files not a a part of this repo, but it'd be good to share useful images in this discussion.

BTW, here's a study talking about creating tax units from the PSID.

rickecon commented 3 years ago

This PR has been superseded by PR #39. Closing.