Giter VIP home page Giter VIP logo

opa-wealthtax's People

Contributors

em-ng21 avatar fhoces avatar ktdomo avatar sastoudt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

opa-wealthtax's Issues

Hard Coded Numbers

  • numberTaxpayers

  • taxBase

  • brackets

  • total number of households

  • total number of tax units

There are assumptions/parameters that affect these. Ultimately make a new tab that allows interactive choices of these.

api to change Country params

Hi @sastoudt Sara, love the work and I am following the work at wealthtaxsimulator.

Don't have expertise in R but in python : how can contribute to support API and data integration for other Countries, too ?

Define Tax Brackets

  • Basic: Choose your bracket limits (4 brackets, 3 tax rates, bottom bracket set at zero by default)

  • Advanced: on the plot rather than on the side

explain pareto interpolation

Clarify following line in document:

 We use a standard Pareto interpolation technique, to estimate the billionaire tax base between \$1 billion and `r paste("$", round(totax_last_400_in, 1),sep="")` (below the Forbes 400).

Please add a more narrative explanation and if possible, add code to that uses the pareto distributin parameters in R

High Level To-Dos

Moving these from README

High level to dos:

  • Create a DD based on spreadsheet
  • Remove rounding
  • Wrap each chunk in the DD into a function
  • Run the shiny app based on the functions above
  • Run everything on datahub
  • Share prototypes of DD and App privately
  • Rename taxbase variables into taxreveneu when apropiate

Efficiency

  • streamline getGroup (had to rollback changes due to a bug in the streamlined version)
  • streamline getAverage

Connect functions of DD with those of Shiny App

So far the app and dynamic doc produce the same analysis, but that analysis is performed using a different function. So if something changes in the DD, it will not be reflected in the app.

To achieve a higher level of transparency and reproducibility we need to have both running on the same functions.

This will probably entail two big tasks:

  • Make code from app more compact and readable.

  • Wrap each step of the DD into a function. With the following structure:

dd_overall_chunk_functions{
    ...
    functions_in_common_dd_and_app{
        ...
    }
    ...
} 
  • Make the relevant functions in the in the app with the following structure:
shiny_app_functions{
    ...
    functions_in_common_dd_and_app{
        ...
    }
    ...
} 

Small Changes

  • change increment to by 0.1
  • length of xval (try 1000, too laggy)
  • change getMarginal function name to be more representative
  • format of numerical outputs (emphasize Total Taxes and Total Taxes over 10 years)

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.