--- language: - en tags: - missing-data - lost-to-follow-up - retention - breast-cancer - sub-saharan-africa - health-systems license: cc-by-nc-4.0 pretty_name: SSA Breast Missing Data Patterns (Retention & Incomplete Tests) task_categories: - other size_categories: - 1K75 km from the facility. - **SES**: higher risk for `Low` vs `High` SES. - **Insurance**: higher risk for `None` vs `National_insurance` or `Private`. At each scheduled month, patients either: - Remain in care and have a visit record (`visit_attended` True/False). - Drop out (no further visits recorded). Retention at 12 and 24 months is validated against the configuration. ## Test ordering and result availability (missingness) ### Baseline tests For each patient at baseline, the following are simulated with facility-specific probabilities: - `baseline_pathology_ordered` - `baseline_pathology_result_available` (e.g., ER/PR/HER2 receptors) - `baseline_cbc_ordered` - `baseline_cbc_result_available` - `baseline_imaging_ordered` (staging imaging) - `baseline_imaging_result_available` Approximate patterns by facility type: - **Pathology receptors**: - High ordering and completion in `Tertiary_urban` (~90%+ completed). - Lower completion in `Regional_hospital` (~65–70%). - Substantial missingness in `District_hospital` (~40–50% completed). - **CBC and imaging**: - More widely available, but still with gradients by facility and context. ### Follow-up labs (CBC) At each **attended** follow-up visit (months >0): - `cbc_ordered` is drawn from facility-specific probabilities. - `cbc_result_available` is drawn conditional on ordering and reflects: - Higher completion in tertiary centres. - Lower completion in district hospitals. This yields **visit-level missingness** that depends on both visit attendance and facility/test capacity. ### Non-random missingness Missingness is deliberately **not MCAR**: - Baseline pathology results are more often missing in: - `District_hospital` and `Regional_hospital` than `Tertiary_urban`. - `Low` SES vs `High` SES. - Follow-up CBC results are more often missing among: - Patients with long travel distances. - Those without insurance. The validation script checks for **higher missingness in Low vs High SES** for both baseline pathology and follow-up CBC. ## Files and schema ### Baseline table Files: - `missing_data_baseline.parquet` - `missing_data_baseline.csv` Columns (per patient): - Identifiers and demographics: - `sample_id` - `population` - `region` - `is_SSA` - `sex` - `age_years` - Access and facility characteristics: - `facility_type` - `urban_rural` - `distance_km` - `ses` - `insurance_status` - Baseline tests (ordered and result availability): - `baseline_pathology_ordered` - `baseline_pathology_result_available` - `baseline_cbc_ordered` - `baseline_cbc_result_available` - `baseline_imaging_ordered` - `baseline_imaging_result_available` ### Visit-level table Files: - `missing_data_visits.parquet` - `missing_data_visits.csv` Columns (per scheduled time point while in care): - Identifiers and baseline covariates: - `sample_id` - `population` - `facility_type` - `urban_rural` - `ses` - `insurance_status` - `distance_km` - Visit information: - `visit_month` (0, 3, 6, 9, 12, 18, 24) - `visit_attended` (True/False) - Follow-up CBC: - `cbc_ordered` - `cbc_result_available` Patients with early loss to follow-up have **shorter visit histories**, so the visit table is an **unbalanced panel** that mimics real program data. ## Generation The dataset is generated with: - `missing_data_patterns/scripts/generate_missing_data.py` using configuration: - `missing_data_patterns/configs/missing_data_config.yaml` and literature inventory: - `missing_data_patterns/docs/LITERATURE_INVENTORY.csv` Key steps: 1. **Baseline cohort**: populations, sex, age, facility type, urban/rural, distance, SES, insurance. 2. **Baseline tests**: pathology receptors, CBC, and imaging, with ordering/completion probabilities by facility type. 3. **Visits and retention**: scheduled visits from 0 to 24 months, with facility-specific dropout probabilities tuned to match retention targets and modified by distance/SES/insurance. 4. **Follow-up CBC**: ordering and result availability for each attended visit, by facility type. ## Validation Validation is performed with: - `missing_data_patterns/scripts/validate_missing_data.py` and summarized in: - `missing_data_patterns/output/validation_report.md` Checks include: - **C01–C02**: Baseline sample size and population counts vs configuration. - **C03**: Retention at 12 and 24 months by facility vs configured targets. - **C04**: Baseline pathology receptor result availability vs expected rates. - **C05**: Follow-up CBC result availability vs expected rates for attended visits. - **C06–C07**: Non-random missingness by SES (Low vs High) for baseline pathology and follow-up CBC. - **C08**: Overall missingness in key baseline and visit variables. ## Intended use This dataset is intended for: - Developing and benchmarking **missing-data methods** (imputation, inverse probability weighting, joint models). - Exploring **selection bias** introduced by LTFU and incomplete tests. - Teaching about: - How health-system factors (facility, distance, SES, insurance) shape missing data. - Differences between MCAR, MAR, and MNAR mechanisms in realistic African oncology settings. It is **not intended** for: - Estimating real-world retention or test completion at specific facilities. - Evaluating individual centres or countries. - Clinical decision-making. ## Ethical considerations - All data are **synthetic** and derived from literature-informed parameter ranges. - Facility and population labels are generic and **must not** be interpreted as real institutions. - The goal is to enable more robust and equitable analyses under realistic data limitations in African healthcare settings. ## License - License: **CC BY-NC 4.0**. - Free for non-commercial research, method development, and education with attribution. ## Citation If you use this dataset, please cite: > Electric Sheep Africa. "SSA Breast Missing Data Patterns (Retention & Incomplete Tests, Synthetic)." Hugging Face Datasets. and relevant literature on retention and pathology services in sub-Saharan Africa (e.g., Foerster et al. 2020, Rosen & Fox 2007, Adesina et al. 2020, Joko-Fru et al. 2021).