Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inflation-adjust #8

Open
MaxGhenis opened this issue Oct 5, 2020 · 4 comments
Open

Inflation-adjust #8

MaxGhenis opened this issue Oct 5, 2020 · 4 comments

Comments

@MaxGhenis
Copy link
Collaborator

No description provided.

@MaxGhenis
Copy link
Collaborator Author

@rickecon could you point to your OG-USA code on this?

@rickecon
Copy link
Member

rickecon commented Oct 6, 2020

@MaxGhenis . OG-USA has a function in the wealth.py module called get_wealth_data(). This function gets wealth data from 1-to-5 past SCF surveys, adjusts them for inflation, and pools them together. I am currently working on a PR that allows the function to get 2019 SCF data as well as fixes the hard coded CPI numbers in lines 29-32 of the function.

The other function in that module compute_wealth_moments() computes selected wealth moments from the data and does not need any updating as far as I can tell.

I will try and submit the PR that updates this function in the next hour.

cc: @jdebacker

@rickecon
Copy link
Member

rickecon commented Oct 6, 2020

@MaxGhenis The OG-USA PR with the new wealth.py module that incorporates SCF 2019 data and has updated annual CPI values for combining the datasets is PR #658.

@jdebacker
Copy link
Member

@MaxGhenis After seeing your talk today, I think it'd make a lot more sense to include the inflation adjustment into the microdf package rather than the scf. That way, one can apply it to any survey data.

A nice method to do that without hardcoding values is to use the pandas-datareader package and grab the price indices from FRED, then merge them onto your micro data. It'd be another dependency, but just two lines of code and you cover any year and can have an option to select which price index to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants