Comments (2)
@martinholmer it is CLP_solver_16Years.py
from taxdata.
@andersonfrailey, Thanks for the pointer to the code that generates the WEIGHTS.csv
file.
Here are the last two statements of that Python program:
# Export all weights
z = df(z, columns=['WT2009','WT2010','WT2011','WT2012','WT2013','WT2014',
'WT2015','WT2016','WT2017','WT2018','WT2019','WT2020',
'WT2021','WT2022','WT2023','WT2024', 'WT2025', 'WT2026'])
z.to_csv('WEIGHTS.csv', index = False)
I think we need to insert the following statement between these two existing statements:
z = z.round(0).astype('int64')
I think that will round the weights to the nearest whole number and then convert them to an integer datatype, so that the z.to_csv() call will write a CSV file containing integers.
Can you check that this suggest works as I imagine it will? If it does, can you prepare a taxdata pull request that makes this change? And then can you prepare a tax-calculator pull request that replaces the old float weights with the new integer weights? Doing all this will improve things along the lines discussed in tax-calculator pull request 1153, which will not be needed after you make these changes.
from taxdata.
Related Issues (20)
- Updating TaxData with 2014 PUF Variables
- Contributor/User Documentation Missing HOT 3
- Estimating 2014 JCT count/amount targets for nonitemizers? (2014 PUF) HOT 1
- CPS BUG: XTOT not always equal to (nu18 + n1820 + n21)
- CPS BUG: n24 and nu18 not always consistent with taxpayer/spouse ages
- Do we have a sense of where Tax Calculator's 2011 PUF outputs are most likely to be off? HOT 2
- Inconsistent child age information HOT 3
- Broken Links in Documentation
- TaxData and New PUF Vintages
- Code style improvement HOT 2
- Issue error from report.py HOT 1
- weighting issue: total number of population under 18 years old (nu18) not accurate
- 2033 puf weights and puf ratio odd results HOT 6
- manually claim Julia path for make-files HOT 2
- Apply stochastic imputation to split income between spouses in PUF HOT 1
- randomness of taxdata HOT 6
- change `gunzip` to `gzip -d` in Makefile
- `cmbtp` value HOT 1
- growth factor update
- New ACPIU grow factors HOT 1
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 taxdata.