Skip to content

Package dashboard and add Census SPM comparisons#3

Merged
MaxGhenis merged 5 commits into
mainfrom
refresh-python-package-ci
May 17, 2026
Merged

Package dashboard and add Census SPM comparisons#3
MaxGhenis merged 5 commits into
mainfrom
refresh-python-package-ci

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented May 16, 2026

Summary

  • package the dashboard as a Python project with CI and Python 3.14 support
  • add Census 2024 SPM report comparisons, threshold-ratio diagnostics, and source-replication controls
  • add SPM element impact comparisons using arithmetic removal/addition without rerunning microsimulation
  • add raw ASEC SPM total-income leaf diagnostics that reconstruct SPM_TOTVAL from public-use person income leaves and compare those leaves against ECPS concepts

Key diagnostic findings

  • Raw CPS ASEC with Census-reported SPM resources remains close to Census, so the PE/Census gap is not primarily the threshold formula.
  • Adding the missing child-support and workers-comp components closes only a small share of the gap.
  • SPM_TOTVAL is exactly the SPM-unit sum of person PTOTVAL; public-use person income leaves reconstruct it essentially exactly.
  • The largest SPM total-income leaf gaps are wage/salary income, pensions/annuities, farm self-employment, interest, retirement distributions, dividends, and Social Security.

Tests

  • uv run pytest tests/test_spm_diagnostics.py tests/test_poverty_calc.py -q
  • uv run ruff format --check poverty_dashboard/spm_diagnostics.py tests/test_spm_diagnostics.py
  • uv run ruff check poverty_dashboard/spm_diagnostics.py tests/test_spm_diagnostics.py
  • npm run typecheck in frontend/
  • npm run build in frontend/

@MaxGhenis MaxGhenis force-pushed the refresh-python-package-ci branch from 50dd4be to 96bbe20 Compare May 16, 2026 15:11
@MaxGhenis MaxGhenis force-pushed the refresh-python-package-ci branch from 96bbe20 to 43e5b35 Compare May 16, 2026 15:56
@MaxGhenis MaxGhenis merged commit 128d914 into main May 17, 2026
2 checks passed
@MaxGhenis MaxGhenis deleted the refresh-python-package-ci branch May 17, 2026 11:38
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