Skip to content

Commit 030f761

Browse files
committed
Add 2025 ACA and Medicaid target coverage
1 parent ac4db66 commit 030f761

10 files changed

Lines changed: 354 additions & 20 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ node_modules
1313
## old (not clean) targets
1414
!healthcare_spending.csv
1515
!medicaid_enrollment_2024.csv
16+
!medicaid_enrollment_2025.csv
1617
!eitc.csv
1718
!spm_threshold_agi.csv
1819
!population_by_state.csv
1920
!aca_spending_and_enrollment_2024.csv
21+
!aca_spending_and_enrollment_2025.csv
2022
!real_estate_taxes_by_state_acs.csv
2123
!snap_state.csv
2224
!age_state.csv
@@ -29,6 +31,7 @@ docs/.ipynb_checkpoints/
2931

3032
## ACA PTC state-level uprating factors
3133
!policyengine_us_data/storage/aca_ptc_multipliers_2022_2024.csv
34+
!policyengine_us_data/storage/aca_ptc_multipliers_2022_2025.csv
3235

3336
## Calibration run outputs (weights, diagnostics, packages, config)
3437
policyengine_us_data/storage/calibration/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add 2025 ACA and Medicaid calibration target artifacts, plus year-aware ACA target loading and state uprating factors for 2025 builds.

policyengine_us_data/calibration/unified_matrix_builder.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from policyengine_us_data.db.create_database_tables import create_or_replace_views
2323
from policyengine_us_data.storage import STORAGE_FOLDER
24-
from policyengine_us_data.utils.census import STATE_NAME_TO_FIPS
24+
from policyengine_us_data.utils.census import STATE_ABBREV_TO_FIPS, STATE_NAME_TO_FIPS
2525
from policyengine_us_data.calibration.calibration_utils import (
2626
get_calculated_variables,
2727
apply_op,
@@ -1689,11 +1689,22 @@ def _get_uprating_info(
16891689
def _load_aca_ptc_factors(
16901690
self,
16911691
) -> Dict[int, Dict[str, float]]:
1692-
csv_path = STORAGE_FOLDER / "aca_ptc_multipliers_2022_2024.csv"
1692+
csv_candidates = {}
1693+
for path in STORAGE_FOLDER.glob("aca_ptc_multipliers_2022_*.csv"):
1694+
suffix = path.stem.removeprefix("aca_ptc_multipliers_2022_")
1695+
if suffix.isdigit():
1696+
csv_candidates[int(suffix)] = path
1697+
1698+
eligible_years = [
1699+
year for year in csv_candidates if year <= self.time_period
1700+
] or sorted(csv_candidates)
1701+
csv_path = csv_candidates[max(eligible_years)]
16931702
df = pd.read_csv(csv_path)
16941703
result = {}
16951704
for _, row in df.iterrows():
16961705
fips_str = STATE_NAME_TO_FIPS.get(row["state"])
1706+
if fips_str is None:
1707+
fips_str = STATE_ABBREV_TO_FIPS.get(row["state"])
16971708
if fips_str is None:
16981709
continue
16991710
fips_int = int(fips_str)

policyengine_us_data/storage/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@
55
• Date: 2024
66
• Location: https://www.cms.gov/files/document/health-insurance-exchanges-2024-open-enrollment-report-final.pdf
77

8+
- **aca_spending_and_enrollment_2025.csv**
9+
• Source: CMS “Effectuated Enrollment: Early 2025 Snapshot and Full Year 2024 Average”, Table 2 and Table 3
10+
• Date: March 15, 2025 snapshot
11+
• Location: https://www.cms.gov/files/document/effectuated-enrollment-early-snapshot-2025-and-full-year-2024-average.pdf
12+
• Notes: `enrollment` is APTC enrollment by state; `spending` is monthly APTC enrollment multiplied by average monthly APTC for APTC recipients
13+
814
- **medicaid_enrollment_2024.csv**
915
• Source: MACPAC Enrollment Tables, FFY 2024
1016
• Date: 2024
1117
• Location: https://www.medicaid.gov/resources-for-states/downloads/eligib-oper-and-enrol-snap-december2024.pdf#page=26
1218

19+
- **medicaid_enrollment_2025.csv**
20+
• Source: Medicaid.gov performance indicator dataset, latest final-report month available in the March 2026 release
21+
• Date: November 2025 final reports
22+
• Location: https://data.medicaid.gov/dataset/State-Medicaid-and-CHIP-Applications-Eligibility-Deter/pi-dataset-march-2026release
23+
1324
- **district_mapping.csv**
1425
• Source: created by the script `policyengine_us/storage/calibration_targets/make_district_mapping.py`
1526
• Notes: this script is not part of `make data` because of the length of time it takes to run and the
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
state,enroll_2022,aptc_2022,enroll_2025,aptc_2025,vol_mult,val_mult
2+
AK,18576,695.4,24249,1008.66,1.3053940568475453,1.450474547023296
3+
AL,200963,713.19,446956,611.48,2.224071097664744,0.8573872320139093
4+
AR,73925,451.83,143734,508.4,1.9443219479201894,1.1252019564880598
5+
AZ,159471,448.69,370817,458.26,2.32529425412771,1.021328757048296
6+
CA,1586076,476.02,1751717,559.49,1.1044344659398415,1.1753497752195285
7+
CO,132564,373.95,202916,465.8,1.5307021514136567,1.2456210723358738
8+
CT,78832,657.22,128440,783.8,1.629287598944591,1.1925991296673868
9+
DC,2232,343.0,3458,489.13,1.549283154121864,1.4260349854227405
10+
DE,27345,607.2,45885,588.14,1.678003291278113,0.9686100131752304
11+
FL,2544476,552.78,4472539,591.39,1.7577446201103881,1.069846955389124
12+
GA,612951,466.22,1408787,573.3,2.2983680587844706,1.229676976534683
13+
HI,17724,576.23,19676,577.9,1.1101331527871812,1.0028981483088348
14+
IA,62355,598.02,117890,471.05,1.8906262529067437,0.787682686197786
15+
ID,57637,453.64,100605,406.51,1.7454933462879747,0.8961070452341063
16+
IL,266563,508.89,395850,542.1,1.485014799503307,1.0652596828391205
17+
IN,121953,459.49,289683,427.8,2.375365919657573,0.9310322313869726
18+
KS,93793,531.71,182303,579.53,1.9436738349343767,1.0899362434409734
19+
KY,56614,484.54,77424,526.97,1.367576924435652,1.0875675898790607
20+
LA,89229,658.46,276294,593.53,3.0964596711831356,0.9013911247456184
21+
MA,179791,377.37,294241,409.73,1.6365724646951183,1.0857513845827702
22+
MD,134906,374.94,181274,405.13,1.3437059878730375,1.0805195497946338
23+
ME,52938,470.92,53808,607.03,1.016434319392497,1.2890299838613777
24+
MI,248623,392.06,470840,449.38,1.8937910008325858,1.1462021119216446
25+
MN,69218,342.85,91520,363.43,1.3221994278944784,1.0600262505468863
26+
MO,216351,548.21,383029,564.46,1.7704054984723898,1.029641925539483
27+
MS,129385,569.78,320193,575.98,2.474730455616957,1.0108813928182807
28+
MT,43431,501.35,67185,544.77,1.546936519997237,1.0866061633589308
29+
NC,608078,580.69,888059,573.88,1.460435996697792,0.9882725722846957
30+
ND,26577,452.14,38239,485.74,1.4388004665688376,1.0743132658026275
31+
NE,90106,614.95,127135,602.33,1.4109493263489667,0.979478006341979
32+
NH,35528,336.67,47900,340.5,1.3482323800945732,1.0113761249888615
33+
NJ,272035,490.07,457128,546.69,1.6804014189350636,1.1155345154773808
34+
NM,27522,472.35,60742,591.28,2.2070343725019983,1.251783635016407
35+
NV,86938,434.76,94596,464.67,1.088085762267363,1.068796577422026
36+
NY,118805,361.6,118526,433.79,0.9976516139893102,1.1996404867256636
37+
OH,196185,438.57,513517,500.44,2.6175140810969237,1.1410721207560937
38+
OK,173176,558.99,289763,559.31,1.673228391924978,1.0005724610458147
39+
OR,109031,491.48,106167,531.17,0.9737322412891747,1.0807560836656627
40+
PA,325333,499.67,421996,538.87,1.2971201814755957,1.0784517781735945
41+
RI,27386,401.71,36438,471.54,1.3305338494121084,1.1738318687610467
42+
SC,271359,513.06,587715,523.46,2.165820923573569,1.0202705336607807
43+
SD,38076,641.7,50340,599.92,1.3220926567916798,0.9348916939379771
44+
TN,238632,544.86,592946,592.36,2.4847715310603773,1.0871783577432734
45+
TX,1656384,503.86,3713574,540.82,2.2419764982033152,1.0733537093637122
46+
UT,235188,370.03,395357,462.92,1.6810253924519958,1.251033699970273
47+
VA,264517,508.29,326268,405.46,1.23344813376834,0.7976942296720375
48+
VT,22625,566.36,30280,946.45,1.338342541436464,1.6711102478988629
49+
WA,147712,420.54,226813,445.26,1.5355082863951472,1.0587815665572835
50+
WI,181848,531.3,271589,585.19,1.4934945668910298,1.1014304536043669
51+
WV,20466,1007.49,63036,1103.76,3.0800351802990327,1.0955542983056903
52+
WY,32278,813.47,43457,915.98,1.3463349649916352,1.1260157104748791
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
state,enrollment,spending
2+
AK,24249,24458996.34
3+
AL,446956,273304654.88
4+
AR,143734,73074365.6
5+
AZ,370817,169930598.42
6+
CA,1751717,980068144.33
7+
CO,202916,94518272.8
8+
CT,128440,100671272.0
9+
DC,3458,1691411.54
10+
DE,45885,26986803.9
11+
FL,4472539,2645014839.21
12+
GA,1408787,807657587.1
13+
HI,19676,11370760.4
14+
IA,117890,55532084.5
15+
ID,100605,40896938.55
16+
IL,395850,214590285.0
17+
IN,289683,123926387.4
18+
KS,182303,105650057.59
19+
KY,77424,40800125.28
20+
LA,276294,163988777.82
21+
MA,294241,120559364.93
22+
MD,181274,73439535.62
23+
ME,53808,32663070.24
24+
MI,470840,211586079.2
25+
MN,91520,33261113.6
26+
MO,383029,216204549.34
27+
MS,320193,184424764.14
28+
MT,67185,36600372.45
29+
NC,888059,509639298.92
30+
ND,38239,18574211.86
31+
NE,127135,76577224.55
32+
NH,47900,16309950.0
33+
NJ,457128,249907306.32
34+
NM,60742,35915529.76
35+
NV,94596,43955923.32
36+
NY,118526,51415393.54
37+
OH,513517,256984447.48
38+
OK,289763,162067343.53
39+
OR,106167,56392725.39
40+
PA,421996,227400984.52
41+
RI,36438,17181974.52
42+
SC,587715,307645293.9
43+
SD,50340,30199972.8
44+
TN,592946,351237492.56
45+
TX,3713574,2008375090.68
46+
UT,395357,183018662.44
47+
VA,326268,132288623.28
48+
VT,30280,28658506.0
49+
WA,226813,100990756.38
50+
WI,271589,158931166.91
51+
WV,63036,69576615.36
52+
WY,43457,39805742.86
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
state,enrollment
2+
AK,199460
3+
AL,752535
4+
AR,723536
5+
AZ,1579905
6+
CA,11554412
7+
CO,1046707
8+
CT,882013
9+
DC,242274
10+
DE,227234
11+
FL,3447907
12+
GA,1698374
13+
HI,364787
14+
IA,585282
15+
ID,293777
16+
IL,2719408
17+
IN,1431868
18+
KS,333620
19+
KY,1200890
20+
LA,1274536
21+
MA,1405793
22+
MD,1209670
23+
ME,314237
24+
MI,2131207
25+
MN,1158706
26+
MO,1133140
27+
MS,509631
28+
MT,192806
29+
NC,2527040
30+
ND,100854
31+
NE,299026
32+
NH,159398
33+
NJ,1514284
34+
NM,640061
35+
NV,679632
36+
NY,5894332
37+
OH,2508352
38+
OK,913130
39+
OR,1124039
40+
PA,2732233
41+
RI,263719
42+
SC,875777
43+
SD,122031
44+
TN,1233717
45+
TX,3776984
46+
UT,298758
47+
VA,1503054
48+
VT,146362
49+
WA,1722640
50+
WI,1030040
51+
WV,451904
52+
WY,54143

0 commit comments

Comments
 (0)