Skip to main content

Python package for solving and simulating finite-horizon stochastic discrete-continuous dynamic choice models using the DC-EGM algorithm from Iskhakov, Jørgensen, Rust, and Schjerning (QE, 2017).

Project description

dc-egm

Continuous Integration Workflow image Codecov pre-commit.ci status Black

Note: This is a pre-release version of the package. While the core features are in place, the interface and functionality may still evolve. Feedback and contributions are welcome.

dcegm is a Python package for solving and simulating finite-horizon stochastic discrete-continuous dynamic choice models using the DC-EGM algorithm from Iskhakov, Jørgensen, Rust, and Schjerning (QE, 2017).

The solution algorithm employs an extension of the Fast Upper-Envelope Scan (FUES) from Dobrescu & Shanker (2022).

Installation

You can install dcegm via PyPI or directly from GitHub. In your terminal, run:

$ pip install dcegm

To install the latest development version directly from the GitHub repository, run:

$ pip install git+https://github.com/OpenSourceEconomics/dcegm.git

Documentation

The documentation is hosted at https://dcegm.readthedocs.io

References

  1. Christopher D. Carroll (2006). The method of endogenous gridpoints for solving dynamic stochastic optimization problems. Economics Letters
  2. Iskhakov, Jorgensen, Rust, & Schjerning (2017). The Endogenous Grid Method for Discrete-Continuous Dynamic Choice Models with (or without) Taste Shocks. Quantitative Economics
  3. Loretti I. Dobrescu & Akshay Shanker (2022). Fast Upper-Envelope Scan for Discrete-Continuous Dynamic Programming.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcegm-0.1.0.dev0.tar.gz (61.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcegm-0.1.0.dev0-py3-none-any.whl (106.1 kB view details)

Uploaded Python 3

File details

Details for the file dcegm-0.1.0.dev0.tar.gz.

File metadata

  • Download URL: dcegm-0.1.0.dev0.tar.gz
  • Upload date:
  • Size: 61.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for dcegm-0.1.0.dev0.tar.gz
Algorithm Hash digest
SHA256 b79577345aa667f7ca87c621e61f28c29a791d0ceddb020783a638615e59393b
MD5 d52a8cac789027c4e74c94fb244172b1
BLAKE2b-256 34b34ff56a40d111e4b4d0f4171df610b1385aab78bc3049e3ffd0303c8ef463

See more details on using hashes here.

File details

Details for the file dcegm-0.1.0.dev0-py3-none-any.whl.

File metadata

  • Download URL: dcegm-0.1.0.dev0-py3-none-any.whl
  • Upload date:
  • Size: 106.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for dcegm-0.1.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f862dc1e89ed6069b4a1c33a0737042c2c6972514383ab5cf63980deec614d7
MD5 a1e06986178c7e75b8407235b7b2f8a5
BLAKE2b-256 b56c9fd5c7a846c9d10d9262b6b463a89c6511c117c45122db3f7bfc8f4fb286

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page