Comments (5)
Ok, I modified the Python code for this to look more like the SAS code.
Here's what I wrote in the python script:
_compitem = np.where( np.logical_and(e04470 > 0, e04470 < _stded[FLPDYR-2013, MARS]), 1, 0)
This had no effect on the run, however, and when I looked at a sample taxpayer for whom C04100 differed (I used this variable as it's the first in a chain that seems to be thrown off by mismatching values of _compitem) I found that according to SAS output their _compitem was equal to 1 whereas the Python script still had it as 0.
I made sure that the aforementioned conditional actually had an effect by printing the number of "1"s in _compitem... it was greater than zero, which means the array does indeed now consist of both 1 and 0 values.
from tax-calculator.
Update:
I figured it out. I should have indexed _stded like this:
_stded[FLPDYR-2013, MARS-1]
I have now brought the error of C04100 down to practically zero!
Closing this issue.
from tax-calculator.
Great!
from tax-calculator.
On Fri, 3 Oct 2014, Ilia Kurenkov wrote:
Ok, I modified the Python code for this to look more like the SAS code.
Here's what I wrote in the python script:
_compitem = np.where(
np.logical_and(e04470 > 0, e04470 < _stded[FLPDYR-2013, MARS]),
1,
0)This had no effect on the run, however, and when I looked at a sample taxpayer for
whom C04100 differed (I used this variable as it's the first in a chain that seems
to be thrown off by mismatching values of _compitem) and found that according to
SAS output their _compitem was equal to 1 whereas the Python script still had it as
0.
What was e04470, what was _stded, for a inconsistent record?
dan
I made sure that the aforementioned conditional actually had an effect by printing
the number of "1"s in _compitem... it was greater than zero, which means the array
does indeed now consist of both 1 and 0 values.—
Reply to this email directly or view it onGitHub.[8114261__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNzk1OTAzNiwiZ
GF0YSI6eyJpZCI6NDM4MTM4MTZ9fQ==--1aa7f2b5f89fe719d5becbe42d2d39a2ff7687b9.gif]
from tax-calculator.
Dan, the same applies to this issue as in #36. Here it will actually be hard to answer your question, since in order for me to get you an inconsistent record, I'd need to reintroduce the bug.
from tax-calculator.
Related Issues (20)
- CTC multiple non-refundability limitations
- Allow negative values for the bonus credits for children under age 6
- How to interact AGI with SALT cap HOT 2
- Missing 2020-2022 policy parameter values HOT 1
- Incorrect 2020 UI exemption logic HOT 1
- Incorrect 2020 CG_brk2 policy parameter value HOT 1
- Incorrect 2021 RRC_pe policy parameter value HOT 1
- Incorrect 2020-21 EITC_ps and EITC_ps_MarriedJ policy parameter values HOT 1
- Ensure recipes run on Google Colab
- Parameterize IRS rounding rules for indexed parameter values HOT 4
- Incorrect 2021 *_brk5 and *_brk6 policy parameter values HOT 2
- Exempt the first $400 from self-employment tax HOT 1
- Incorrect 2021 Child and Dependent Tax Credit calculations
- Incorrect 2020 EITC calculation HOT 1
- Incorrect EITC amount for two kids in 2022 HOT 1
- Incorrect status-quo EITC calculations for 2022 HOT 2
- Introduce tax offset (employer side payroll) into Tax-Calc HOT 3
- Release Tax-Calculator 3.3.0 HOT 1
- documentation issues
- Pandas .append() method deprecated 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 tax-calculator.