Skip to main content

Add your description here

Project description

cdef-cohort-generation

This Python project is designed to process and analyze data from Danish national registers for an observational study investigating the long-term impact of severe chronic diseases in children on parental income trajectories in Denmark.

Project Overview

The primary objectives of this study are:

  1. Quantify the difference in total personal income between parents of children with severe chronic diseases and matched controls over a 22-year period (2000-2022).
  2. Explore how this impact varies across disease severity, geographical location, and parental education levels.
  3. Examine gender differences in the economic impact of childhood chronic diseases on parents.
  4. Assess the role of socioeconomic factors in moderating the impact of childhood chronic diseases on parental income trajectories.

Key Features

  • Process and combine data from various Danish national registers
  • Identify severe chronic diseases using ICD-10 codes
  • Generate cohorts for analysis
  • Perform longitudinal data analysis
  • Apply statistical methods including difference-in-differences analysis and marginal structural models

Project Structure

  • src/cdef_cohort_generation/: Main package containing all the source code

    • config.py: Configuration settings and file paths
    • logging_config.py: Logging setup
    • main.py: Main execution script
    • mappings.py: Data mappings and dictionaries
    • population.py: Population data processing
    • registers/: Modules for processing different registers
    • types.py: Custom type definitions
    • utils.py: Utility functions
  • tests/: Unit tests for the project

Installation

This project requires Python 3.12.6 and uses rye for dependency management.

  1. Clone the repository
  2. Install rye if you haven't already (see here)
  3. Navigate to the project directory and set up the environment:
    rye sync
    

Usage

To run the main processing script:

python -m cdef_cohort_generation.main

Testing

To run the unit tests:

pytest tests/

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

Contributors

  • Tobias Kragholm

Acknowledgments

This project uses data from Danish national registers and is conducted in compliance with Danish data protection regulations.

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

cdef_cohort_generation-0.1.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

cdef_cohort_generation-0.1.0-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file cdef_cohort_generation-0.1.0.tar.gz.

File metadata

File hashes

Hashes for cdef_cohort_generation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e10ec695825a09ac0d844ef34d88fa78f3bfa3862c4cbaf6c378aae06a86a661
MD5 c4a7bdcf1fe9fdeb0ed952457f84486f
BLAKE2b-256 af61fee70be8a64fb8d6c0f995ea01907ad3cb6cb13da63480a2bcc7a2b2ed0a

See more details on using hashes here.

File details

Details for the file cdef_cohort_generation-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cdef_cohort_generation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1d380e8164eef5767cd48cdf6c19d87f8902420c549179769c8e2e8a2765a8a
MD5 20105c305ea8abb3e3fdd56f6150dcde
BLAKE2b-256 138f9927100da1ee5feae3324c9ee862a786f881f1c2486d035b819cd8f21aea

See more details on using hashes here.

Supported by

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