The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 16 new columns ({'esrd_rr_pct', 'primary_endpoint', 'year', 'drug_class', 'ma_relevance', 'cv_death_rr_pct', 'drug', 'primary_p_value', 'primary_rr_reduction_pct', 'citation_journal', 'n_enrolled', 'citation_doi', 'a1c_reduction_pct', 'trial_name', 'hf_hospitalization_rr_pct', 'population'}) and 8 missing columns ({'cost_low', 'unit', 'year_dollars', 'source', 'cost_item', 'cost_high', 'source_year', 'notes'}).
This happened while the csv dataset builder was generating data using
hf://datasets/danyarm/ma-a1c-heor-analytics/data/cv_outcome_trials.csv (at revision 908c446664e58e7d3de13d9f9d2d5db9f7a5b150), [/tmp/hf-datasets-cache/medium/datasets/70086181604998-config-parquet-and-info-danyarm-ma-a1c-heor-analy-9697e5c6/hub/datasets--danyarm--ma-a1c-heor-analytics/snapshots/908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/cost_benchmarks.csv (origin=hf://datasets/danyarm/ma-a1c-heor-analytics@908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/cost_benchmarks.csv), /tmp/hf-datasets-cache/medium/datasets/70086181604998-config-parquet-and-info-danyarm-ma-a1c-heor-analy-9697e5c6/hub/datasets--danyarm--ma-a1c-heor-analytics/snapshots/908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/cv_outcome_trials.csv (origin=hf://datasets/danyarm/ma-a1c-heor-analytics@908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/cv_outcome_trials.csv), /tmp/hf-datasets-cache/medium/datasets/70086181604998-config-parquet-and-info-danyarm-ma-a1c-heor-analy-9697e5c6/hub/datasets--danyarm--ma-a1c-heor-analytics/snapshots/908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/population_funnel.csv (origin=hf://datasets/danyarm/ma-a1c-heor-analytics@908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/population_funnel.csv), /tmp/hf-datasets-cache/medium/datasets/70086181604998-config-parquet-and-info-danyarm-ma-a1c-heor-analy-9697e5c6/hub/datasets--danyarm--ma-a1c-heor-analytics/snapshots/908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/t2dm_ma_prevalence.csv (origin=hf://datasets/danyarm/ma-a1c-heor-analytics@908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/t2dm_ma_prevalence.csv)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1800, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
trial_name: string
year: int64
drug: string
drug_class: string
population: string
n_enrolled: int64
primary_endpoint: string
primary_rr_reduction_pct: string
primary_p_value: string
cv_death_rr_pct: string
esrd_rr_pct: double
hf_hospitalization_rr_pct: double
a1c_reduction_pct: string
ma_relevance: string
citation_doi: string
citation_journal: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 2277
to
{'cost_item': Value('string'), 'cost_low': Value('int64'), 'cost_high': Value('int64'), 'unit': Value('string'), 'year_dollars': Value('int64'), 'source': Value('string'), 'source_year': Value('int64'), 'notes': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 882, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 943, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1802, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 16 new columns ({'esrd_rr_pct', 'primary_endpoint', 'year', 'drug_class', 'ma_relevance', 'cv_death_rr_pct', 'drug', 'primary_p_value', 'primary_rr_reduction_pct', 'citation_journal', 'n_enrolled', 'citation_doi', 'a1c_reduction_pct', 'trial_name', 'hf_hospitalization_rr_pct', 'population'}) and 8 missing columns ({'cost_low', 'unit', 'year_dollars', 'source', 'cost_item', 'cost_high', 'source_year', 'notes'}).
This happened while the csv dataset builder was generating data using
hf://datasets/danyarm/ma-a1c-heor-analytics/data/cv_outcome_trials.csv (at revision 908c446664e58e7d3de13d9f9d2d5db9f7a5b150), [/tmp/hf-datasets-cache/medium/datasets/70086181604998-config-parquet-and-info-danyarm-ma-a1c-heor-analy-9697e5c6/hub/datasets--danyarm--ma-a1c-heor-analytics/snapshots/908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/cost_benchmarks.csv (origin=hf://datasets/danyarm/ma-a1c-heor-analytics@908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/cost_benchmarks.csv), /tmp/hf-datasets-cache/medium/datasets/70086181604998-config-parquet-and-info-danyarm-ma-a1c-heor-analy-9697e5c6/hub/datasets--danyarm--ma-a1c-heor-analytics/snapshots/908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/cv_outcome_trials.csv (origin=hf://datasets/danyarm/ma-a1c-heor-analytics@908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/cv_outcome_trials.csv), /tmp/hf-datasets-cache/medium/datasets/70086181604998-config-parquet-and-info-danyarm-ma-a1c-heor-analy-9697e5c6/hub/datasets--danyarm--ma-a1c-heor-analytics/snapshots/908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/population_funnel.csv (origin=hf://datasets/danyarm/ma-a1c-heor-analytics@908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/population_funnel.csv), /tmp/hf-datasets-cache/medium/datasets/70086181604998-config-parquet-and-info-danyarm-ma-a1c-heor-analy-9697e5c6/hub/datasets--danyarm--ma-a1c-heor-analytics/snapshots/908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/t2dm_ma_prevalence.csv (origin=hf://datasets/danyarm/ma-a1c-heor-analytics@908c446664e58e7d3de13d9f9d2d5db9f7a5b150/data/t2dm_ma_prevalence.csv)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
cost_item string | cost_low int64 | cost_high int64 | unit string | year_dollars int64 | source string | source_year int64 | notes string |
|---|---|---|---|---|---|---|---|
Annual excess medical cost T2DM vs non-DM Medicare | 14,000 | 18,000 | USD per member per year | 2,022 | Dall TM et al. Diabetes Care 2022 | 2,022 | Total excess; includes drug and non-drug |
Annual excess cost A1C >8% vs controlled T2DM | 8,200 | 11,000 | USD per member per year | 2,022 | Dall TM et al. Diabetes Care 2022 + HCCI MA Claims Analysis | 2,022 | Used $9600 midpoint in model |
Hospitalization excess (CV/DKA/hypoglycemia) | 3,600 | 4,800 | USD per member per year | 2,022 | HCCI Medicare Advantage Claims Analysis | 2,023 | Per uncontrolled T2DM member |
CKD progression cost contribution | 2,000 | 2,800 | USD per member per year | 2,022 | CMS ESRD cost data + Kalantar-Zadeh Clin J Am Soc Nephrol | 2,022 | Stage 3->4 progression attributable cost |
Neuropathy/PVD cost contribution | 1,200 | 2,000 | USD per member per year | 2,022 | Boulton AJ et al. Diabetes Care 2005 inflated to 2022 | 2,022 | null |
Retinopathy/ophthalmology cost | 600 | 1,100 | USD per member per year | 2,022 | Zhang X et al. Ophthalmology 2010 inflated to 2022 | 2,022 | null |
Amputation lifetime attributable cost (annual) | 400 | 750 | USD per member per year | 2,022 | Amputee Coalition + CMS DRG codes 876-878 | 2,022 | Lifetime cost amortized over T2DM uncontrolled cohort |
Acute MI hospitalization + 30-day care | 38,000 | 52,000 | USD per episode | 2,023 | HCCI Hospital Price Transparency 2023 | 2,023 | Medicare rates; includes 30-day post-discharge |
Ischemic stroke acute + rehabilitation | 22,000 | 34,000 | USD per episode | 2,023 | Benjamin EJ et al. Circulation 2023 | 2,023 | Medicare Advantage paid amount |
ESRD initiation year 1 (hemodialysis) | 89,000 | 105,000 | USD per member year 1 | 2,023 | CMS ESRD Payment Data 2023 | 2,023 | Facility + physician + drug costs |
Below-knee amputation episode | 72,000 | 96,000 | USD per episode | 2,023 | Amputee Coalition / CMS DRG codes | 2,023 | Includes acute care + 90-day post-acute |
GLP-1 agonist net drug cost (rebated MA) | 3,200 | 4,600 | USD per member per year | 2,024 | SSR Health WAC + typical MA rebate tier | 2,024 | Liraglutide/semaglutide; varies by rebate negotiation |
SGLT2 inhibitor net drug cost (rebated MA) | 2,800 | 3,800 | USD per member per year | 2,024 | SSR Health WAC + typical MA rebate tier | 2,024 | Empagliflozin/dapagliflozin |
Tirzepatide net drug cost (rebated MA) | 4,200 | 6,800 | USD per member per year | 2,024 | SSR Health WAC + limited MA rebate | 2,024 | Coverage still variable across plans 2024-2025 |
DPP-4 inhibitor net drug cost (rebated MA) | 1,600 | 2,400 | USD per member per year | 2,024 | SSR Health WAC + typical MA rebate tier | 2,024 | Sitagliptin; patent expiry reducing cost |
Care management program cost | 150 | 220 | USD per member per year | 2,024 | Industry benchmark (URAC-accredited CM programs) | 2,024 | RN outreach + MTM consult + monitoring |
HEDIS C09 star bonus value per member | 450 | 550 | USD per member per year | 2,024 | CMS Medicare Advantage Star Ratings Technical Notes 2025 | 2,024 | Approximate value of 1 star improvement |
PA denial rate first submission GLP-1/SGLT2 | 38 | 52 | percent | 2,023 | AHIP Prior Authorization Reform Survey 2023 | 2,023 | MA plans; varies widely by plan |
Average PA approval time GLP-1/SGLT2 | 7 | 12 | days (mean 9.4) | 2,023 | AHIP Prior Authorization Reform Survey 2023 | 2,023 | null |
First-fill abandonment rate GLP-1 | 18 | 26 | percent (mean 22) | 2,024 | Zuckerman AD et al. JMCP 2021 + 2024 update | 2,024 | Members who don't pick up first fill after PA approval |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | null | null | null | null | null |
null | null | null | percent | null | CMS Chronic Conditions Data Warehouse | 2,023 | Standard CCD definition: ICD-10 E11.x codes + pharmacy |
null | null | null | percent | null | CMS Chronic Conditions Data Warehouse | 2,023 | MA has slightly higher-risk enrollment mix than FFS |
null | null | null | percent | null | CMS HEDIS C09 Measure Data | 2,023 | HEDIS C09 denominator denominator criterion |
null | null | null | percent | null | NHANES 2017-2020 | 2,022 | NHANES wave: adults 65+ |
null | null | null | percent | null | NHANES 2017-2020 + ADA SOC 2024 | 2,022 | ADA threshold for "inadequate control" requiring intensification |
null | null | null | percent | null | NHANES 2017-2020 | 2,022 | null |
null | null | null | percent | null | NHANES 2017-2020 | 2,022 | null |
null | null | null | percent | null | CDC National Diabetes Statistics Report | 2,024 | Estimated from OGTT and A1C testing in population surveys |
null | null | null | percent | null | CDC National Diabetes Statistics Report | 2,024 | null |
null | null | null | percent | null | DPP study / Knowler et al. NEJM 2002 | 2,002 | Without lifestyle or metformin intervention |
null | null | null | per 1000 person-years | null | CDC Diabetes Surveillance System | 2,023 | null |
null | null | null | members per year | null | Derived: CMS enrollment x incidence rate | 2,023 | null |
null | null | null | percent | null | Khunti et al. Diabetes Care 2013 + CMS claims | 2,013 | Share with no intensification in prior 12 months |
null | null | null | years (mean 1.9) | null | Khunti K et al. Diabetes Care 2013 | 2,013 | doi:10.2337/dc13-0375 |
MA T2DM A1C Gap — HEOR Analytics Source Data
Graphify.md · §3A Compact Knowledge Graph Methodology · Patent Pending · graphifymd.com
Dataset Summary
This dataset contains the source data, clinical trial evidence, cost benchmarks, and population funnel underlying a Health Economics and Outcomes Research (HEOR) analysis of inadequately controlled Type 2 diabetes in Medicare Advantage (MA) plans (May 2026).
The analysis was conducted by Daniel Yarmoluk (Graphify.md), Mohan Nadarajah (payer analytics), Dan McCreary (knowledge graph architecture), and Jim (commercial strategy) in a live working session.
The core finding: ~2.2 million Medicare Advantage members have A1C >8% (inadequate control by ADA 2024 standards). Annual excess medical cost vs. controlled: $9,600/member/year. Total exposure on a 100,000-member plan: $67.2M/year. Therapy intensification generates a 3.1× ROI over 3 years.
Files
| File | Description |
|---|---|
data/t2dm_ma_prevalence.csv |
T2DM epidemiology in Medicare/MA — prevalence, incidence, A1C distribution |
data/cv_outcome_trials.csv |
9 published CV outcome trials (LEADER, EMPA-REG, SUSTAIN-6, CREDENCE, etc.) |
data/cost_benchmarks.csv |
Medical event costs, drug costs, PA metrics — all with sources |
data/population_funnel.csv |
10-layer actionable population funnel for 100K-member MA plan |
process/methodology_overview.md |
Step-by-step HEOR analytical process — replicable without proprietary data |
Key Statistics
| Metric | Value | Source |
|---|---|---|
| T2DM in Medicare Advantage | 27–29% | CMS CCD Warehouse 2023 |
| MA members with A1C >8% | ~2.2M | NHANES 2017–2020 + CMS |
| A1C >8% — inadequate control rate | 23–27% of T2DM | ADA SOC 2024 |
| A1C >9% — poor control rate | 12–15% of T2DM | NHANES 2017–2020 |
| Annual excess cost (A1C >8% vs. controlled) | $9,600/member/year | Dall et al. Diabetes Care 2022 |
| Therapeutic inertia delay | 1.9 years mean | Khunti et al. Diabetes Care 2013 |
| MACE reduction — GLP-1 (LEADER) | −14% | Marso et al. NEJM 2016 |
| CV death reduction — SGLT2 (EMPA-REG) | −38% | Zinman et al. NEJM 2015 |
| 3-year ROI on intensification program | 3.1× | Modeled (see methodology) |
Intended Use
Permitted Uses
- Internal payer analytics and population health program design
- HEOR research and academic analysis
- Replication and audit of published claims
- Health economics education
Not Included / Protected
The Compact Knowledge Graph (CKG) encoding structure — the typed entity graph, relationship topology, and traversal logic used to integrate these data sources — is the proprietary methodology of Graphify.md, protected under pending patent claims (§3A, 2 provisional applications filed April–May 2026). This dataset publishes the underlying source data and analytical process but not the graph structure itself.
Data Sources
| Source | Type | Access |
|---|---|---|
| CMS Chronic Conditions Data Warehouse | Federal administrative data | cms.gov/Research-Statistics |
| NHANES 2017–2020 | Federal population survey | cdc.gov/nchs/nhanes |
| ADA Standards of Care 2024 | Clinical guideline | diabetesjournals.org |
| HCCI Medicare Advantage Claims Analysis | Published research | healthcostinstitute.org |
| Dall TM et al. Diabetes Care 2022 | Peer-reviewed journal | doi.org/10.2337 |
| Khunti K et al. Diabetes Care 2013 | Peer-reviewed journal | doi:10.2337/dc13-0375 |
| LEADER (Marso SP et al. NEJM 2016) | RCT | doi:10.1056/NEJMoa1603827 |
| SUSTAIN-6 (Marso SP et al. NEJM 2016) | RCT | doi:10.1056/NEJMoa1607141 |
| EMPA-REG (Zinman B et al. NEJM 2015) | RCT | doi:10.1056/NEJMoa1504720 |
| CREDENCE (Perkovic V et al. NEJM 2019) | RCT | doi:10.1056/NEJMoa1811744 |
| CMS Star Ratings Technical Notes 2025 | Federal regulatory | cms.gov |
| AHIP PA Survey 2023 | Industry survey | ahip.org |
Limitations
- Cost estimates are literature-derived, not plan-specific claims. Calibrate with your own actuarial data.
- RRR from CVOTs are applied to MA population; real-world effect sizes may differ.
- Rebate assumptions are estimates — net drug costs vary by plan size and negotiation.
- Therapeutic inertia delay (1.9 years) is from a 2013 study; current practice patterns may differ.
- Model outputs are planning estimates, not actuarial certifications.
Replication
See process/methodology_overview.md for the full step-by-step analytical process including:
- Claims-based population extraction logic
- A1C stratification criteria
- ROI model structure and sensitivity ranges
- HEDIS C09 linkage
Citation
@dataset{yarmoluk2026ma_a1c_heor,
author = {Yarmoluk, Daniel},
title = {MA T2DM A1C Gap — HEOR Analytics Source Data},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/datasets/danyarm/ma-a1c-heor-analytics},
note = {Graphify.md §3A CKG Methodology — Patent Pending}
}
Contact
Daniel Yarmoluk · Founder, Graphify.md
daniel.yarmoluk@gmail.com · graphifymd.com
§3A Compact Knowledge Graph Methodology · Patent Pending (2 provisional applications) · Non-provisional deadline April 2027
- Downloads last month
- 14