Git Product home page Git Product logo

Comments (4)

talumbau avatar talumbau commented on May 27, 2024

How about:

calc.inflation_rates = [0.011, 0.022, 0.023] + [0.024]*7

You get an exception if the length of inflation_rates is not the same as budget_years in the Parameters object. You could also do:

rates = [0.011, 0.022, 0.023] + [0.024]*7
calculator(parameters="params.json", records="puf2.csv", inflation_rates=rates)

So, in this case, because the default size fo budget_years is 10, if you specify the rates, it has to be of length 10. Thoughts?

-T.J.

from tax-calculator.

MattHJensen avatar MattHJensen commented on May 27, 2024

@talumbau The top seems fine for now, although 99% of the time we will just use the defaults values. This is because the inflation rates and the blowup factors are linked (i.e., the records blowup factors are partially determined by the inflation rate, and it doesn't make sense to use different inflation rates for blowing up the tax law parameters from the one that we used to generate the records blowup factors)

A couple of notes:

  1. I am now running the calculator locally with default budget_years = 12, so that we can blow up params from 2013 through 2024. We will still only want to report the 10 years 2015-2024. If you don't, I will probably make this update in an upcoming PR.
  2. Just a heads up: we may need to modify how the data blowup, reweighting, and param inflation are implemented when we link the tax calculator to a macroeconomic model. Then we will want to be able to give the calculator a new set of blowup factors, weights, and inflation rates each time we increment the year (not just when we set up the calculator.)

from tax-calculator.

feenberg avatar feenberg commented on May 27, 2024

I think we need to make the default inflation rates the same as those
Ohara assumes for the data. These seem close to his CPIU numbers, but not
exact.

dan

On Mon, 2 Mar 2015, T.J. Alumbaugh wrote:

How about:

calc.inflation_rates = [0.011, 0.022, 0.023] + [0.024]*7

You get an exception if the length of inflation_rates is not the same as
budget_years in the Parameters object. You could also do:

rates = [0.011, 0.022, 0.023] + [0.024]*7
calculator(parameters="params.json", records="puf2.csv", inflation_rates=rat
es)

So, in this case, because the default size fo budget_years is 10, if you
specify the rates, it has to be of length 10. Thoughts?

-T.J.


Reply to this email directly or view it on
GitHub.[AHvQVZ5TEAg0i5OLw3GRWkZvE7EgdU_Zks5nxIm6gaJpZM4DX9u7.gif]

from tax-calculator.

MattHJensen avatar MattHJensen commented on May 27, 2024

Dealt with in #155. Merging.

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.