How tantikristanti/cohort_demo_project works
This repository demonstrates synthetic maternal-child cohort analysis through parallel R and Python workflows. The main user journey is to generate cohort data, clean and validate it, then produce descriptive summaries and statistical model results. The README identifies R as the primary implementation and Python as a complementary one; Python source excerpts confirm file-level data transfers and analysis outputs. R implementation details are not sampled, so its links reflect only the README’s documented execution order and capabilities.
Main entry points: 02_clean_and_validate.R Clean and validate · 01_generate_data.R Generate cohort · processed Cleaned cohort data · 03_descriptive_analysis.R Descriptive analysis
Components 13
R analysis
- Generate cohort
scripts/R/01_generate_data.R - Clean and validate
scripts/R/02_clean_and_validate.R - Descriptive analysis
scripts/R/03_descriptive_analysis.R - Statistical modeling
scripts/R/04_statistical_modeling.R
Python analysis
- Generate cohort
scripts/python/01_generate_data.py - Clean and validate
scripts/python/02_clean_and_validate.py - Descriptive analysis
scripts/python/03_descriptive_analysis.py - Statistical modeling
scripts/python/04_statistical_modeling.py
Cohort artifacts
- Raw cohort data
data/raw - Cleaned cohort data
data/processed
Analysis results
- Tables and plots
outputs - Model outputs
outputs
Other components
- Analyst
Connections 15
- Analyst → Generate cohort: runs workflow
README.md - Generate cohort → Clean and validate: then runs
README.md - Clean and validate → Descriptive analysis: then runs
README.md - Descriptive analysis → Statistical modeling: then runs
README.md - Analyst → Generate cohort: runs workflow
README.md - Generate cohort → Raw cohort data: writes CSV
scripts/python/01_generate_data.py - Clean and validate → Raw cohort data: reads CSV
scripts/python/02_clean_and_validate.py - Clean and validate → Cleaned cohort data: writes cleaned data
scripts/python/02_clean_and_validate.py - Cleaned cohort data → Descriptive analysis: provides input
scripts/python/03_descriptive_analysis.py - Descriptive analysis → Tables and plots: writes tables and plots
scripts/python/03_descriptive_analysis.py - Cleaned cohort data → Statistical modeling: provides input
scripts/python/04_statistical_modeling.py - Statistical modeling → Model outputs: writes odds ratios and ROC
scripts/python/04_statistical_modeling.py - Generate cohort → Clean and validate: generates then cleans
README.md - Clean and validate → Descriptive analysis: produces profiling input
README.md - Statistical modeling → Model outputs: produces model results
README.md