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:
- 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).
- Explore how this impact varies across disease severity, geographical location, and parental education levels.
- Examine gender differences in the economic impact of childhood chronic diseases on parents.
- 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 codeconfig.py
: Configuration settings and file pathslogging_config.py
: Logging setupmain.py
: Main execution scriptmappings.py
: Data mappings and dictionariespopulation.py
: Population data processingregisters/
: Modules for processing different registerstypes.py
: Custom type definitionsutils.py
: Utility functions
-
tests/
: Unit tests for the project
Installation
This project requires Python 3.12.6 and uses rye
for dependency management.
- Clone the repository
- Install
rye
if you haven't already (see here) - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cdef_cohort_generation-0.1.0.tar.gz
.
File metadata
- Download URL: cdef_cohort_generation-0.1.0.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e10ec695825a09ac0d844ef34d88fa78f3bfa3862c4cbaf6c378aae06a86a661 |
|
MD5 | c4a7bdcf1fe9fdeb0ed952457f84486f |
|
BLAKE2b-256 | af61fee70be8a64fb8d6c0f995ea01907ad3cb6cb13da63480a2bcc7a2b2ed0a |
File details
Details for the file cdef_cohort_generation-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: cdef_cohort_generation-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1d380e8164eef5767cd48cdf6c19d87f8902420c549179769c8e2e8a2765a8a |
|
MD5 | 20105c305ea8abb3e3fdd56f6150dcde |
|
BLAKE2b-256 | 138f9927100da1ee5feae3324c9ee862a786f881f1c2486d035b819cd8f21aea |