PolicyEngine / microdf

Analysis tools for working with survey microdata as DataFrames.
http://pslmodels.github.io/microdf
MIT License
12 stars 10 forks source link

Function to load Survey of Consumer Finances summary microdata #73

Open MaxGhenis opened 4 years ago

MaxGhenis commented 4 years ago

SCF summary microdata can be loaded using

mdf.read_stata_zip(
    'https://www.federalreserve.gov/econres/files/scfp{YYYY}s.zip')

For years 1992, 1995, 1998, 2001, 2004, 2007, 2010, 2013, and 2016.

Add a function like load_scf().

SCF summary microdata is documented at https://sda.berkeley.edu/sdaweb/docs/scfcomb/DOC/hcbk.htm

MaxGhenis commented 4 years ago

This could also be used in OG-USA: https://github.com/PSLmodels/OG-USA/blob/25fb1fb9afa3bf83c4a42c3382cb4eaa597d641d/ogusa/wealth.py