Skip to content

Add hourly wage and employment income consistency diagnostics#850

Merged
MaxGhenis merged 2 commits intomainfrom
codex/issue-848-hourly-wage-diagnostics
Apr 30, 2026
Merged

Add hourly wage and employment income consistency diagnostics#850
MaxGhenis merged 2 commits intomainfrom
codex/issue-848-hourly-wage-diagnostics

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

Fixes #848.

  • Add a reusable hourly wage vs annual employment income consistency diagnostic for H5 sanity checks.
  • Quantify weighted mismatch share, mean absolute relative gap, p90 gap, and the share whose hourly facts imply annual wages above reported employment income.
  • Report both all comparable hourly workers and an overtime-hours subset.
  • Add unit coverage and an ECPS integration assertion that the diagnostic emits quantified output.

Validation

  • uv run pytest tests/unit/calibration/test_hourly_wage_income_consistency.py -q
  • uv run ruff format policyengine_us_data/calibration/sanity_checks.py tests/unit/calibration/test_hourly_wage_income_consistency.py tests/integration/test_enhanced_cps.py
  • uv run ruff check policyengine_us_data/calibration/sanity_checks.py tests/unit/calibration/test_hourly_wage_income_consistency.py tests/integration/test_enhanced_cps.py
  • git diff --check

Note: I did not run the ECPS integration test locally because enhanced_cps_2024.h5 was not present in the worktree.

@MaxGhenis MaxGhenis marked this pull request as ready for review April 30, 2026 00:17
@MaxGhenis MaxGhenis merged commit 7a11756 into main Apr 30, 2026
9 of 10 checks passed
@MaxGhenis MaxGhenis deleted the codex/issue-848-hourly-wage-diagnostics branch April 30, 2026 00:17
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 diagnostics for hourly wage and annual employment income consistency

1 participant