File size: 9,174 Bytes
70149a1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
---
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:
- 1K<n<10K
---

# SSA Breast Missing Data Patterns (Synthetic)

## Dataset summary

This module provides a **synthetic missing-data sandbox** for oncology care in African healthcare contexts, focusing on:

- **Realistic loss-to-follow-up (LTFU) and retention** patterns over 0–24 months.
- **Incomplete diagnostic and laboratory test results** (ordered vs completed vs available in records).
- **Non-random missingness** driven by facility type, distance, socioeconomic status (SES), and insurance.

The dataset is anchored in published evidence from:

- The **ABC-DO** sub-Saharan African breast cancer cohort (low LTFU with active tracing).
- Meta-analyses of **HIV ART retention** (60–70% retained at 2–3 years in routine care).
- Surveys of **breast cancer pathology services and management** (AORTIC, BMC Health Serv Res, JCO GO).
- Real-world challenges in SSA breast cancer care (BMJ Open 2021).

All records are **fully synthetic** and intended for methods development and teaching on missing data and retention, not for inference on real facilities.

## Cohort design

### Sample size and populations

- **Total N (baseline patients)**: 6,000.
- **Populations**:
  - `SSA_West`: 1,500
  - `SSA_East`: 1,500
  - `SSA_Central`: 1,000
  - `SSA_Southern`: 1,000
  - `AAW` (African American women): 1,000 (reference/high-resource context)

### Key baseline variables

- `sex`: predominantly `Female` (~96%), with a small proportion of `Male` to allow mixed-sex analyses.
- `age_years`: 18–90 (mean ~52, SD ~10).
- `facility_type`:
  - `Tertiary_urban`
  - `Regional_hospital`
  - `District_hospital`
- `urban_rural`:
  - `Urban`, `Periurban`, `Rural`.
- `distance_km` from facility:
  - Drawn from normal distributions by `urban_rural` (e.g., Urban mean ~5 km, Rural mean ~60 km).
- `ses` (socioeconomic status): `Low`, `Middle`, `High` with higher `Low` fractions in SSA cohorts.
- `insurance_status`: `None`, `National_insurance`, `Private`.

These variables drive **missingness mechanisms** (higher LTFU and test missingness with longer distance, low SES, and lack of insurance).

## Follow-up and retention

Patients are scheduled for visits at months:

- `visit_month`: [0, 3, 6, 9, 12, 18, 24].

Retention targets (probability of still in care at 12 and 24 months) vary by facility type, loosely anchored by ABC-DO and HIV ART literature:

- `Tertiary_urban`: 12m ≈ 0.85, 24m ≈ 0.75.
- `Regional_hospital`: 12m ≈ 0.75, 24m ≈ 0.60.
- `District_hospital`: 12m ≈ 0.65, 24m ≈ 0.50.

In the generator, a per-interval dropout probability is derived from these targets. This dropout risk is then **modulated by**:

- **Distance**: higher risk for patients living >75 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).