GithubHelp home page GithubHelp logo

Inflation-adjust about scf HOT 4 OPEN

pslmodels avatar pslmodels commented on July 25, 2024
Inflation-adjust

from scf.

Comments (4)

MaxGhenis avatar MaxGhenis commented on July 25, 2024

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

from scf.

rickecon avatar rickecon commented on July 25, 2024

@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

from scf.

rickecon avatar rickecon commented on July 25, 2024

@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.

from scf.

jdebacker avatar jdebacker commented on July 25, 2024

@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.

from scf.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.