Skip to content

Add CBO household income concepts#8001

Draft
MaxGhenis wants to merge 3 commits intoPolicyEngine:mainfrom
MaxGhenis:max/cbo-household-income
Draft

Add CBO household income concepts#8001
MaxGhenis wants to merge 3 commits intoPolicyEngine:mainfrom
MaxGhenis:max/cbo-household-income

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

What changed

  • add explicit CBO-style household income concepts in policyengine-us
  • add before-tax, after-tax, and equivalized variants for benchmarking
  • add an employer-sponsored insurance premium input and include it in CBO market income
  • add targeted policy tests for the new concepts

Why

The benchmark tooling needed a named, reusable U.S. income concept that gets much closer to CBO's household income framework than raw household_market_income or household_net_income.

Impact

This gives downstream analysis code a stable variable stack for CBO-style comparisons instead of rebuilding ad hoc proxy formulas outside the model.

Validation

  • PYTHONPATH=/Users/maxghenis/worktrees/policyengine-us-cbo-bridge /Users/maxghenis/PolicyEngine/policyengine-us/.venv/bin/python -m policyengine_core.scripts.policyengine_command test /Users/maxghenis/worktrees/policyengine-us-cbo-bridge/policyengine_us/tests/policy/baseline/household/income/household/cbo_household_income.yaml -c policyengine_us
  • PYTHONPATH=/Users/maxghenis/worktrees/policyengine-us-cbo-bridge /Users/maxghenis/PolicyEngine/policyengine-us/.venv/bin/python -m policyengine_core.scripts.policyengine_command test /Users/maxghenis/worktrees/policyengine-us-cbo-bridge/policyengine_us/tests/policy/baseline/household/income/equiv_cbo_household_income.yaml -c policyengine_us
  • ruff check policyengine_us/variables/input/employer_sponsored_insurance_premiums.py policyengine_us/variables/household/income/household/cbo_*.py

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7f3ec13) to head (1076c15).
⚠️ Report is 365 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #8001   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2        14   +12     
  Lines           46       136   +90     
=========================================
+ Hits            46       136   +90     
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.

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.

1 participant