Skip to main content

Open-source toolkit for health economic evaluation of psychedelic therapies vs ECT for treatment-resistant depression

Project description

TRD CEA Toolkit: Health Economic Evaluation Tools

This repository contains a comprehensive toolkit for conducting health economic evaluations comparing psychedelic therapies and other interventions for treatment-resistant depression (TRD).

Overview

The TRD CEA Toolkit provides:

  • Cost-Effectiveness Analysis (CEA): Traditional and distributional CEA
  • Value of Information (VOI): EVPI, EVPPI, and EVSI analysis
  • Budget Impact Analysis (BIA): Multi-year budget projections
  • Multiple Criteria Decision Analysis (MCDA): Multi-attribute utility modeling
  • Sensitivity Analysis: One-way, multi-way, and probabilistic sensitivity analysis
  • Implementation Modeling: Capacity constraints and implementation costs
  • Equity Analysis: Distributional cost-effectiveness with population subgroups

Installation

# Clone the repository
git clone https://github.com/your-username/trd-cea-toolkit.git
cd trd-cea-toolkit

# Create conda environment (recommended)
conda env create -f environment.yml
conda activate trd-cea

# Or create environment manually
conda create -n trd-cea python=3.10
conda activate trd-cea
pip install -r requirements.txt

# Install as package in development mode
pip install -e .

Usage

Quick Start with Jupyter Notebooks

The easiest way to get started is using the example notebooks in the analysis/ directory:

# Activate environment
conda activate trd-cea

# Launch Jupyter Lab
jupyter lab

Then navigate to the example notebooks in analysis/cea/, analysis/dcea/, etc.

Command Line Interface

The toolkit includes a command-line interface:

# Run CEA analysis
trd-cea-analyze cea --config config/analysis_config.yaml

# Run Budget Impact Analysis
trd-cea-analyze bia --config config/bia_config.yaml

# Run Value of Information analysis
trd-cea-analyze voi --config config/voi_config.yaml --type evpi

Programmatic Usage

from src.trd_cea.analysis import run_analysis_pipeline

# Run analysis from configuration
results = run_analysis_pipeline(
    config_path="config/analysis_config.yaml",
    analysis_type="cea"
)

Analysis Types

The toolkit provides implementations for:

  • CEA: Cost-effectiveness analysis with ICERs and NMB calculations
  • DCEA: Distributional CEA incorporating equity considerations
  • VOI: Value of information analysis (EVPI, EVPPI, EVSI)
  • BIA: Budget impact analysis with multi-year projections
  • MCDA: Multi-criteria decision analysis
  • PSA: Probabilistic sensitivity analysis
  • DSA: Deterministic sensitivity analysis (one-way and multi-way)
  • VBP: Value-based pricing calculations
  • Headroom: Headroom and pricing threshold analysis
  • Subgroup: Subgroup analysis by demographics/clinical characteristics
  • Scenario: Scenario analysis for different assumptions
  • Capacity: Capacity constraints and implementation modeling
  • Policy: Policy realism and implementation feasibility assessment

Project Structure

trd-cea-analysis/
├── analysis/                 # Jupyter notebooks by analysis type
│   ├── cea/                  # Cost-effectiveness analysis examples
│   ├── dcea/                 # Distributional CEA examples  
│   ├── voi/                  # Value of information examples
│   ├── bia/                  # Budget impact analysis examples
│   └── ...                   # Other analysis types
├── src/trd_cea/              # Python package source
│   ├── core/                 # Core utilities and configuration
│   ├── models/               # Analysis engine implementations
│   ├── analysis/             # Analysis execution functions
│   ├── plotting/             # Visualization and plotting utilities
│   └── utils/                # General utility functions
├── config/                   # Configuration files
├── data/                     # Data schemas and sample data structures
├── docs/                     # Documentation
├── tests/                    # Test suite
├── reports/                  # Project reports and documentation
├── development/              # Development tools and configuration
├── archives/                 # Archive files and backups
├── environment.yml           # Conda environment specification
├── requirements.txt          # Python dependencies
├── pyproject.toml            # Python package metadata
├── setup.py                  # Package setup script
├── scripts/                  # Additional scripts (orchestration, etc.)
├── README.md                 # This file
└── LICENSE                   # License information

Configuration

All analyses are configurable through YAML files in the config/ directory. This separates configuration from code, allowing for reproducible analyses with different parameter sets.

Contributing

We welcome contributions! Please see the CONTRIBUTING.md file for details.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Citation

If you use this toolkit in your research, please consider citing:

Dylan A Mordaunt (2025). TRD CEA Toolkit: Health Economic Evaluation Tools. Available at https://github.com/edithatogo/ee_trd

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

trd_cea_toolkit-0.4.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

trd_cea_toolkit-0.4.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file trd_cea_toolkit-0.4.0.tar.gz.

File metadata

  • Download URL: trd_cea_toolkit-0.4.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for trd_cea_toolkit-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3fcd0b044e2769a22780f5fd4d249ef0e874eed033aeb48514b7ddb793eb1383
MD5 468bd53b2d2231d515bdc63620e468ce
BLAKE2b-256 4bb2c4d1600888ba48c3fbcee6f671aed43118aadfa6bc02c449fbbeeb459522

See more details on using hashes here.

File details

Details for the file trd_cea_toolkit-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for trd_cea_toolkit-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cc613589350b8e8d5e89fda5fea1780bd3cb5767b0c68f15c0a60770304bbe9
MD5 cf421eb395dd1f3837229efcba35e2cb
BLAKE2b-256 c78cdefde2bfa6ace2bbce4bbaf6554da63d54205f7aa36836ee786fc11b0547

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