Skip to content

OpenSourceEcon/RDcredit2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data and code for full R&D expense deductibility tax reform analysis

This repository contains the data and code for the analyses by Richard W. Evans (@rickecon) and Ike Brannon in the June 2025 article, "Microeconomic and Macroeconomic Effects of Restoring Full R&D Expense Deductibility in Section 174".

How to run the code from these analyses in the cloud in your browser

We have created a Google Colab notebook RDcredit2025.ipynb with code almost exactly the same as the code in the Jupyter Notebook rdcredit_ccc.ipynb.ipynb decribed in the next section. This notebook only runs the Cost-of-Capital-Calculator analyses and not the macroeconomic simulations from the `` Python script. The Google Colab notebook RDcredit2025.ipynb has the advantage of using a distribution of Python and corresponding packages that run in the cloud on remote servers instead of on your local machine. This allows you to use the notebook from any kind of device with a browser. You can execute the code, see the results, and save output to a temporary cloud folder from which you can download anything you want to keep.

How to run the Jupyter notebook and Python script on your machine

This repository contains a Jupyter Notebook rdcredit_ccc.ipynb that can be run locally on your own machine to replicate the Cost-of-Capital-Calculator analyses in the article. The macroeconomic simulations in the article using the open source OG-USA macroeconomic model of US fiscal policy can be run by executing the rdcredit_ogusa.ipynb Python script. You can also modify the notebook and Python script to use for other analyses you might want to experiment with. To run this notebook and Python script locally on your machine, do the following steps:

  • Fork and clone (or download) the https://github.com/OpenSourceEcon/RDcredit2025 repository
  • In your computer's terminal, navigate to the directory of the RDcredit2025 repository on your local machine.
  • Create the conda environment rdcredit-dev by typing the following command: conda env create -f ./code/environment.yml
  • Activate the rdcredit-dev conda environment by typing the following command: conda activate rdcredit-dev
  • This should allow your rdcredit_ccc.ipynb notebook to run while this conda environment is activated. And you should be able to run the rdcredit_ogusa.py Python script for the macroeconomic simulations.

Files and directories in the repository

This repository contains the following items:

About

Data and code for R&D tax credit analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published