Skip to content

llorracc/Q-Investment

 
 

Repository files navigation

Qmod: A Python class implementing the Abel-Hayashi "Marginal Q" model of investment.

Binder

This implementation follows Professor Christopher D. Carroll's lecture notes.

📑 New here? See INDEX.md for a complete guide to repository contents and how to accomplish common tasks.

Installation

Requirements: Python 3.8-3.10 and uv

Linux/macOS:

git clone https://github.com/llorracc/Q-Investment.git
cd Q-Investment
./INSTALL.sh
source .venv/bin/activate

Windows (PowerShell):

git clone https://github.com/llorracc/Q-Investment.git
cd Q-Investment
.\INSTALL.ps1
.venv\Scripts\Activate.ps1

Windows (Command Prompt):

git clone https://github.com/llorracc/Q-Investment.git
cd Q-Investment
INSTALL.bat
.venv\Scripts\activate

See INSTALLATION.md for troubleshooting.

1. Qmod

The Qmod folder includes a file defining the Qmod Python class, which represents a Q-model of capital investment. The Qmod class' current functions include:

  • Solution of the model, obtaining its policy rule.
  • Drawing of the model's phase diagram.
  • Simulation of the model's dynamics starting from a given level of capital.

2. Dolo

The Dolo folder implements the model using Dolo.

3. Examples

Current examples include:

About

Numerical solution of the Abel-Hayashi marginal Q Investment Model.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 94.8%
  • Shell 5.2%