Skip to content

Add hourly wage and employment income consistency diagnostics#849

Closed
MaxGhenis wants to merge 1 commit intoPolicyEngine:mainfrom
MaxGhenis:codex/issue-848-hourly-wage-diagnostics
Closed

Add hourly wage and employment income consistency diagnostics#849
MaxGhenis wants to merge 1 commit intoPolicyEngine:mainfrom
MaxGhenis: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.

Copy link
Copy Markdown
Contributor Author

Closing in favor of #850, which uses a branch on the upstream repository so PR checks can access the expected workflow context.

@MaxGhenis MaxGhenis closed this Apr 29, 2026
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