Add your description here
Project description
cdef-cohort-generation
This Python project is part of a research study conducted by the Center for Data og Effektforskning (CDEF) at Mary Elizabeths Hospital, Denmark. The project aims to generate cohorts for an observational study investigating the long-term impact of severe chronic diseases in children on parental income trajectories in Denmark.
The package has been built in such a way that it can be easily extended to include additional registers and data sources. The project is designed to be modular and flexible, allowing for easy integration of new data sources and registers. And also to be easily adaptable to other research projects that require processing and analysis of Danish national registers. But this package focuses on creating the initial cohort/population for the study.
Project Overview
This 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.
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
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
Registers implemented
Registers from Sundhedsdatastyrelsen
- LPR_ADM: Administrative data from hospitals (LPR2)
- LPR_DIAG: Diagnoses from hospitals (LPR2)
- LPR_BES: Outpatient visits from hospitals (LPR2)
- LPR_KONTAKER: Contacts with hospitals (LPR3)
- LPR_DIAGNOSER: Diagnoses from hospitals (LPR3)
Registers from Statistics Denmark
- BEF: Population data
- IND: Income data
- IDAN: IDA employment data
- UDDF: Education data
- AKM: Work classification module
Testing
To run the unit tests:
pytest tests/
Todo
- Make sure LPR2/LPR3 processing is as smooth as possible
- Include mappings for variables + ISCED
- Improve logging and error handling
- Add descriptive plots
- Refactor code for better organization and efficiency
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.1.tar.gz
.
File metadata
- Download URL: cdef_cohort_generation-0.1.1.tar.gz
- Upload date:
- Size: 174.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1479dbed036c2752cd91dbe991986977f09ceb66bc727a173782194667b5c56b |
|
MD5 | 953d25fc50d809774616fddec95b19d6 |
|
BLAKE2b-256 | 556ccafa453fb05b07d05c14d023b7b9b6b3c0bb80de3fa280268aca8fd63332 |
File details
Details for the file cdef_cohort_generation-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: cdef_cohort_generation-0.1.1-py3-none-any.whl
- Upload date:
- Size: 182.7 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 | 1c7114f4ee9e90eb014662654420cd4154120ee61ae48046a49aab16f8af7a49 |
|
MD5 | 400ee466f56429023053a7cf78c9b64b |
|
BLAKE2b-256 | fa863361cc4178d33aae77ad6f74360e0905cedcf99baa15b59f28781c2efb4b |