Kossisoroyce commited on
Commit
70149a1
·
verified ·
1 Parent(s): b468ac1

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +270 -0
README.md ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - missing-data
6
+ - lost-to-follow-up
7
+ - retention
8
+ - breast-cancer
9
+ - sub-saharan-africa
10
+ - health-systems
11
+ license: cc-by-nc-4.0
12
+ pretty_name: SSA Breast Missing Data Patterns (Retention & Incomplete Tests)
13
+ task_categories:
14
+ - other
15
+ size_categories:
16
+ - 1K<n<10K
17
+ ---
18
+
19
+ # SSA Breast Missing Data Patterns (Synthetic)
20
+
21
+ ## Dataset summary
22
+
23
+ This module provides a **synthetic missing-data sandbox** for oncology care in African healthcare contexts, focusing on:
24
+
25
+ - **Realistic loss-to-follow-up (LTFU) and retention** patterns over 0–24 months.
26
+ - **Incomplete diagnostic and laboratory test results** (ordered vs completed vs available in records).
27
+ - **Non-random missingness** driven by facility type, distance, socioeconomic status (SES), and insurance.
28
+
29
+ The dataset is anchored in published evidence from:
30
+
31
+ - The **ABC-DO** sub-Saharan African breast cancer cohort (low LTFU with active tracing).
32
+ - Meta-analyses of **HIV ART retention** (60–70% retained at 2–3 years in routine care).
33
+ - Surveys of **breast cancer pathology services and management** (AORTIC, BMC Health Serv Res, JCO GO).
34
+ - Real-world challenges in SSA breast cancer care (BMJ Open 2021).
35
+
36
+ All records are **fully synthetic** and intended for methods development and teaching on missing data and retention, not for inference on real facilities.
37
+
38
+ ## Cohort design
39
+
40
+ ### Sample size and populations
41
+
42
+ - **Total N (baseline patients)**: 6,000.
43
+ - **Populations**:
44
+ - `SSA_West`: 1,500
45
+ - `SSA_East`: 1,500
46
+ - `SSA_Central`: 1,000
47
+ - `SSA_Southern`: 1,000
48
+ - `AAW` (African American women): 1,000 (reference/high-resource context)
49
+
50
+ ### Key baseline variables
51
+
52
+ - `sex`: predominantly `Female` (~96%), with a small proportion of `Male` to allow mixed-sex analyses.
53
+ - `age_years`: 18–90 (mean ~52, SD ~10).
54
+ - `facility_type`:
55
+ - `Tertiary_urban`
56
+ - `Regional_hospital`
57
+ - `District_hospital`
58
+ - `urban_rural`:
59
+ - `Urban`, `Periurban`, `Rural`.
60
+ - `distance_km` from facility:
61
+ - Drawn from normal distributions by `urban_rural` (e.g., Urban mean ~5 km, Rural mean ~60 km).
62
+ - `ses` (socioeconomic status): `Low`, `Middle`, `High` with higher `Low` fractions in SSA cohorts.
63
+ - `insurance_status`: `None`, `National_insurance`, `Private`.
64
+
65
+ These variables drive **missingness mechanisms** (higher LTFU and test missingness with longer distance, low SES, and lack of insurance).
66
+
67
+ ## Follow-up and retention
68
+
69
+ Patients are scheduled for visits at months:
70
+
71
+ - `visit_month`: [0, 3, 6, 9, 12, 18, 24].
72
+
73
+ 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:
74
+
75
+ - `Tertiary_urban`: 12m ≈ 0.85, 24m ≈ 0.75.
76
+ - `Regional_hospital`: 12m ≈ 0.75, 24m ≈ 0.60.
77
+ - `District_hospital`: 12m ≈ 0.65, 24m ≈ 0.50.
78
+
79
+ In the generator, a per-interval dropout probability is derived from these targets. This dropout risk is then **modulated by**:
80
+
81
+ - **Distance**: higher risk for patients living >75 km from the facility.
82
+ - **SES**: higher risk for `Low` vs `High` SES.
83
+ - **Insurance**: higher risk for `None` vs `National_insurance` or `Private`.
84
+
85
+ At each scheduled month, patients either:
86
+
87
+ - Remain in care and have a visit record (`visit_attended` True/False).
88
+ - Drop out (no further visits recorded).
89
+
90
+ Retention at 12 and 24 months is validated against the configuration.
91
+
92
+ ## Test ordering and result availability (missingness)
93
+
94
+ ### Baseline tests
95
+
96
+ For each patient at baseline, the following are simulated with facility-specific probabilities:
97
+
98
+ - `baseline_pathology_ordered`
99
+ - `baseline_pathology_result_available` (e.g., ER/PR/HER2 receptors)
100
+ - `baseline_cbc_ordered`
101
+ - `baseline_cbc_result_available`
102
+ - `baseline_imaging_ordered` (staging imaging)
103
+ - `baseline_imaging_result_available`
104
+
105
+ Approximate patterns by facility type:
106
+
107
+ - **Pathology receptors**:
108
+ - High ordering and completion in `Tertiary_urban` (~90%+ completed).
109
+ - Lower completion in `Regional_hospital` (~65–70%).
110
+ - Substantial missingness in `District_hospital` (~40–50% completed).
111
+
112
+ - **CBC and imaging**:
113
+ - More widely available, but still with gradients by facility and context.
114
+
115
+ ### Follow-up labs (CBC)
116
+
117
+ At each **attended** follow-up visit (months >0):
118
+
119
+ - `cbc_ordered` is drawn from facility-specific probabilities.
120
+ - `cbc_result_available` is drawn conditional on ordering and reflects:
121
+ - Higher completion in tertiary centres.
122
+ - Lower completion in district hospitals.
123
+
124
+ This yields **visit-level missingness** that depends on both visit attendance and facility/test capacity.
125
+
126
+ ### Non-random missingness
127
+
128
+ Missingness is deliberately **not MCAR**:
129
+
130
+ - Baseline pathology results are more often missing in:
131
+ - `District_hospital` and `Regional_hospital` than `Tertiary_urban`.
132
+ - `Low` SES vs `High` SES.
133
+ - Follow-up CBC results are more often missing among:
134
+ - Patients with long travel distances.
135
+ - Those without insurance.
136
+
137
+ The validation script checks for **higher missingness in Low vs High SES** for both baseline pathology and follow-up CBC.
138
+
139
+ ## Files and schema
140
+
141
+ ### Baseline table
142
+
143
+ Files:
144
+
145
+ - `missing_data_baseline.parquet`
146
+ - `missing_data_baseline.csv`
147
+
148
+ Columns (per patient):
149
+
150
+ - Identifiers and demographics:
151
+ - `sample_id`
152
+ - `population`
153
+ - `region`
154
+ - `is_SSA`
155
+ - `sex`
156
+ - `age_years`
157
+ - Access and facility characteristics:
158
+ - `facility_type`
159
+ - `urban_rural`
160
+ - `distance_km`
161
+ - `ses`
162
+ - `insurance_status`
163
+ - Baseline tests (ordered and result availability):
164
+ - `baseline_pathology_ordered`
165
+ - `baseline_pathology_result_available`
166
+ - `baseline_cbc_ordered`
167
+ - `baseline_cbc_result_available`
168
+ - `baseline_imaging_ordered`
169
+ - `baseline_imaging_result_available`
170
+
171
+ ### Visit-level table
172
+
173
+ Files:
174
+
175
+ - `missing_data_visits.parquet`
176
+ - `missing_data_visits.csv`
177
+
178
+ Columns (per scheduled time point while in care):
179
+
180
+ - Identifiers and baseline covariates:
181
+ - `sample_id`
182
+ - `population`
183
+ - `facility_type`
184
+ - `urban_rural`
185
+ - `ses`
186
+ - `insurance_status`
187
+ - `distance_km`
188
+ - Visit information:
189
+ - `visit_month` (0, 3, 6, 9, 12, 18, 24)
190
+ - `visit_attended` (True/False)
191
+ - Follow-up CBC:
192
+ - `cbc_ordered`
193
+ - `cbc_result_available`
194
+
195
+ Patients with early loss to follow-up have **shorter visit histories**, so the visit table is an **unbalanced panel** that mimics real program data.
196
+
197
+ ## Generation
198
+
199
+ The dataset is generated with:
200
+
201
+ - `missing_data_patterns/scripts/generate_missing_data.py`
202
+
203
+ using configuration:
204
+
205
+ - `missing_data_patterns/configs/missing_data_config.yaml`
206
+
207
+ and literature inventory:
208
+
209
+ - `missing_data_patterns/docs/LITERATURE_INVENTORY.csv`
210
+
211
+ Key steps:
212
+
213
+ 1. **Baseline cohort**: populations, sex, age, facility type, urban/rural, distance, SES, insurance.
214
+ 2. **Baseline tests**: pathology receptors, CBC, and imaging, with ordering/completion probabilities by facility type.
215
+ 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.
216
+ 4. **Follow-up CBC**: ordering and result availability for each attended visit, by facility type.
217
+
218
+ ## Validation
219
+
220
+ Validation is performed with:
221
+
222
+ - `missing_data_patterns/scripts/validate_missing_data.py`
223
+
224
+ and summarized in:
225
+
226
+ - `missing_data_patterns/output/validation_report.md`
227
+
228
+ Checks include:
229
+
230
+ - **C01–C02**: Baseline sample size and population counts vs configuration.
231
+ - **C03**: Retention at 12 and 24 months by facility vs configured targets.
232
+ - **C04**: Baseline pathology receptor result availability vs expected rates.
233
+ - **C05**: Follow-up CBC result availability vs expected rates for attended visits.
234
+ - **C06–C07**: Non-random missingness by SES (Low vs High) for baseline pathology and follow-up CBC.
235
+ - **C08**: Overall missingness in key baseline and visit variables.
236
+
237
+ ## Intended use
238
+
239
+ This dataset is intended for:
240
+
241
+ - Developing and benchmarking **missing-data methods** (imputation, inverse probability weighting, joint models).
242
+ - Exploring **selection bias** introduced by LTFU and incomplete tests.
243
+ - Teaching about:
244
+ - How health-system factors (facility, distance, SES, insurance) shape missing data.
245
+ - Differences between MCAR, MAR, and MNAR mechanisms in realistic African oncology settings.
246
+
247
+ It is **not intended** for:
248
+
249
+ - Estimating real-world retention or test completion at specific facilities.
250
+ - Evaluating individual centres or countries.
251
+ - Clinical decision-making.
252
+
253
+ ## Ethical considerations
254
+
255
+ - All data are **synthetic** and derived from literature-informed parameter ranges.
256
+ - Facility and population labels are generic and **must not** be interpreted as real institutions.
257
+ - The goal is to enable more robust and equitable analyses under realistic data limitations in African healthcare settings.
258
+
259
+ ## License
260
+
261
+ - License: **CC BY-NC 4.0**.
262
+ - Free for non-commercial research, method development, and education with attribution.
263
+
264
+ ## Citation
265
+
266
+ If you use this dataset, please cite:
267
+
268
+ > Electric Sheep Africa. "SSA Breast Missing Data Patterns (Retention & Incomplete Tests, Synthetic)." Hugging Face Datasets.
269
+
270
+ 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).