Skip to content

Comments

Add 2024 SLCSP premiums by rating area#7430

Merged
baogorek merged 4 commits intomainfrom
daphnehanse11/issue7429-2024-slcsp
Feb 20, 2026
Merged

Add 2024 SLCSP premiums by rating area#7430
baogorek merged 4 commits intomainfrom
daphnehanse11/issue7429-2024-slcsp

Conversation

@daphnehanse11
Copy link
Collaborator

Summary

  • Adds 2024-01-01 values to state_rating_area_cost.yaml for all 498 rating areas across 50 states + DC
  • Values scraped from the KFF 2024 subsidy calculator using age-0 benchmark premiums
  • 7 non-residential/government ZIPs (e.g. FL state capitol 32399, HI federal building 96850) that KFF doesn't recognize were substituted with valid ZIPs from the same rating area
  • Added 2024 KFF calculator URL to parameter references

Fixes #7429

Test plan

  • All 498 rating areas have a 2024-01-01 entry
  • No 2025-01-01 entry is missing a preceding 2024-01-01 entry
  • CI passes

🤖 Generated with Claude Code

Adds 2024-01-01 values to state_rating_area_cost.yaml for all 498
rating areas across 50 states + DC, scraped from the KFF 2024 subsidy
calculator using age-0 benchmark premiums.

Fixes #7429

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0dd22d3) to head (9339bd7).
⚠️ Report is 107 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #7430   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         1    -3     
  Lines           79        17   -62     
  Branches         1         0    -1     
=========================================
- Hits            79        17   -62     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

daphnehanse11 and others added 3 commits February 18, 2026 12:15
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add 7 slcsp_age_0 tests for 2024 across AK, CO, FL, GA, NY, TX, WA
- Change formula_2025 to formula_2024 in aca_ptc.py so PTC is
  calculated from 2024 onwards (returns 0 before 2024)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The guard was changed from formula_2025 to formula_2024, so the
"returns zero before" test now uses period 2023 instead of 2024.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Collaborator

@baogorek baogorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tested NC's h5 on my local machine and this is in the ballpark:

In [13]: from policyengine_us import Microsimulation

In [14]: import numpy as np

In [15]: sim = Microsimulation(dataset="hf://policyengine/policyengine-us-data/states/NC.h5")

In [16]: sim.calculate("aca_ptc", period=2024).sum() / 1E9
Out[16]: np.float64(5.105194345001662)

Future calibrations should get it closer. I see you're doing some branch hygiene but I'm going to go ahead and approve since I see the substantive work is solid. Nice work.

@baogorek baogorek merged commit f7bbaf1 into main Feb 20, 2026
9 checks passed
@baogorek baogorek deleted the daphnehanse11/issue7429-2024-slcsp branch February 20, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add 2024 SLCSP values

2 participants