Comments (4)
@rickecon could you point to your OG-USA code on this?
from scf.
@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.
@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.
@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)
- Impute missing student loan debt from other sources HOT 3
- Change argument in load from cols to columns
- Add GH Action to test PRs
- Switch from mdf.read_stata_zip to native pandas
- Option to return as MicroDataFrame
- Add option to return MicroDataFrame with person-level weight
- Add option to create wealth per adult (divide by 2 for married families)
- Add function to calculate number of people in each household record HOT 2
- Here are some figures that I like HOT 1
- Make years optional in load() to extract all available years HOT 1
- Make cols optional in load() to extract all columns
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scf.