GithubHelp home page GithubHelp logo

andersonfrailey / cost-of-capital-calculator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pslmodels/cost-of-capital-calculator

0.0 1.0 0.0 106.71 MB

A cost of capital and effective tax rate calculator

License: Other

Python 99.95% Batchfile 0.02% Shell 0.03%

cost-of-capital-calculator's Introduction

Cost-of-Capital-Calculator

Cost-of-Capital-Calculator is a model that can be used to evaluate the effect of US federal taxes on the investment incentives of corporate and non-corporate businesses. Specifically, Cost-of-Capital-Calculator uses data on the business assets and financial policy, as well as microdata on individual tax filers, to compute marginal effective tax rates on new investments. In modeling the effects of changes to the individual income tax code, Cost-of-Capital-Calculator works with Tax-Calculator, another open source model of US federal tax policy. Cost-of-Capital-Calculator is written in Python, an interpreted language that can execute on Windows, Mac, or Linux.

Disclaimer

Results will change as the underlying models improve. A fundamental reason for adopting open source methods in this project is so that people from all backgrounds can contribute to the models that our society uses to assess economic policy; when community-contributed improvements are incorporated, the model will produce different results.

Using/contributing to Cost-of-Capital-Calculator

There are two common ways to get started with Cost-of-Capital-Calculator:

The first way to use Cost-of-Capital-Calculator is to download the source code and install the model on your machine. To do this, follow the following instructions:

  • Install the Anaconda distribution of Python
  • Clone this repository to a directory on your computer
  • From the terminal (or Conda command prompt), navigate to the directory to which you cloned this repository and run conda env create -f environment.yml
  • Then, source activate ccc-dev (or activate ccc-dev if using a Windows machine)
  • Then install by pip install -e .
  • Navigate to ./run_examples
  • Run the model with an example reform from terminal/command prompt by typing python run_ccc_example.py
  • You can adjust the ./run_examples/run_ccc_example.py by adjusting the individual income tax reform (using a dictionary or JSON file in a format that is consistent with Tax Calculator) or other model parameters specified in the user_params or kwargs dictionaries.
  • Model outputs will be saved in the following files:
    • asset_data.pkl
    • Dataframe with the distribution of assets by industry and tax treatment. This dataframe is cached in a pickle file to be used in later runs, thereby reducing run time.
    • ./run_examples/baseline_byasset.csv
      • Cost of capital, marginal effective tax rates, effective average tax rates, and other model output for the baseline policy, organized by asset.
    • ./run_examples/baseline_byindustry.csv
      • Cost of capital, marginal effective tax rates, effective average tax rates, and other model output for the baseline policy, organized by production industry.
    • ./run_examples/reform_byasset.csv
      • Cost of capital, marginal effective tax rates, effective average tax rates, and other model output for the reform policy, organized by asset.
    • ./run_examples/reform_byindustry.csv
      • Cost of capital, marginal effective tax rates, effective average tax rates, and other model output for the refrom policy, organized by production industry.
    • ./run_examples/changed_byasset.csv
      • Differences in cost of capital, marginal effective tax rates, effective average tax rates, and other model output between the baseline and reform reform policies, organized by asset.
    • ./run_examples/changed_byindustry.csv
      • Differences in cost of capital, marginal effective tax rates, effective average tax rates, and other model output between the baseline and reform reform policies, organized by production industry.

The CSV output files can be compared to the ./run_examples/*_expected.csv files that are checked into the repository to confirm that you are generating the expected output. If you run into errors running the example script, please open a new issue in the Cost-of-Capital-Calculator repo with a description of the issue and any relevant tracebacks you receive.

The second way to use Cost-of-Capital-Calculator is through a web application, Cost of Capital Calculator. This way allows you to generate estimates of marginal effective tax rates and the cost of capital across production industries, type of asset, and separately for corporate and non-corporate entites and different forms of financing. The web application is limited in that you cannot consider policy reforms to the individual income tax code.

Of course, you can get started with Cost-of-Capital-Calculator both ways.

Citing the Cost-of-Capital-Calculator Model

Cost-of-Capital-Calculator (Version 0.1.5)[Source code], https://github.com/open-source-economics/Cost-of-Capital-Calculator

cost-of-capital-calculator's People

Contributors

bfgard avatar brittainhard avatar jbcrail avatar jdebacker avatar matthjensen avatar peter-metz avatar peterdsteinberg avatar talumbau avatar

Watchers

 avatar

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.