Coder Social home page Coder Social logo

Comments (6)

iliakur avatar iliakur commented on August 21, 2024

There was talk of making it boolean in #35.

from tax-calculator.

talumbau avatar talumbau commented on August 21, 2024

oh very helpful thanks. Is there any scenario in which we would run the code and _cmp would be something other than 0? It appears to always be 0.

from tax-calculator.

iliakur avatar iliakur commented on August 21, 2024

@feenberg, what do you think?

from tax-calculator.

feenberg avatar feenberg commented on August 21, 2024

The references to _puf and _cmp should probably be replaced with tests
based on the presence or absence of the particular variable that the test
is protecting. That is, if the PUF doesn't include E12345, then instead of

if _puf then c12345=1000; else c12345=e12345;

we should use something like:

if e12345 ne . then c12345 = e12345; else c12345 = 1000;

I am making those changes in the SAS code and they should be
made in the AEI code also.

Note that _cmp == 1-_puf in the SAS code.

dan

On Wed, 12 Nov 2014, T.J. Alumbaugh wrote:

The variable _cmp is only involved in comparison expressions (i.e.
where(_cmp == 1...). It appears that it is never assigned to except when it
is created in puf.py, where it is set to all zeros. Does anyone have any
insight here? I'd like to remove it if it is not actually useful for any
comparisons.


Reply to this email directly or view it on
GitHub.[AHvQVZRDp_xGeRnDkmXrYg-_4XMB_Z2Bks5nM3vPgaJpZM4C6LvH.gif]

from tax-calculator.

feenberg avatar feenberg commented on August 21, 2024

On Wed, 12 Nov 2014, T.J. Alumbaugh wrote:

oh very helpful thanks. Is there any scenario in which we would run the code
and _cmp would be something other than 0? It appears to always be 0.

When users take the code inside government, some of them will have the
complete file, however we shouldn't depend on _cmp to control program
flow.

Note that we will be testing the calculator on a file with all the
variables in the complete file, although the data will be random.

dan


Reply to this email directly or view it on
GitHub.[AHvQVUWswy5FHfBhuM5-KyrnIF3dee6Oks5nM35agaJpZM4C6LvH.gif]

from tax-calculator.

MattHJensen avatar MattHJensen commented on August 21, 2024

Closing in favor of #186.

from tax-calculator.

Related Issues (20)

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.