Skip to content

Add statewide microsimulation impacts tab#2

Merged
DTrim99 merged 7 commits intomasterfrom
add-microsimulation-impacts
Mar 31, 2026
Merged

Add statewide microsimulation impacts tab#2
DTrim99 merged 7 commits intomasterfrom
add-microsimulation-impacts

Conversation

@DTrim99
Copy link
Copy Markdown
Collaborator

@DTrim99 DTrim99 commented Mar 30, 2026

Summary

Adds a third tab showing aggregate microsimulation impacts of the 2025 Oregon Kicker credit.

Features

  • Key metrics cards: Total cost ($1.10B), beneficiaries (1.18M), average credit ($932)
  • Distributional chart: Bar chart showing impact by income decile with toggle between absolute ($/household) and total ($B)
  • Winners/losers: Progress bar showing 69.2% of households gain, average gain $1,120
  • Poverty impact: Shows 0.15 percentage point reduction in poverty rate

Data Source

Precomputed CSV files generated from the analysis in analysis-notebooks#130

Test Plan

  • Verify all CSV files load correctly
  • Check distributional chart renders with proper formatting
  • Test toggle between absolute/relative views
  • Verify mobile responsiveness

Closes #1

🤖 Generated with Claude Code

- Add precomputed CSV data files from analysis notebook
- Create AggregateImpact component showing:
  - Key metrics (total cost, beneficiaries, average credit)
  - Distributional impact by income decile (bar chart)
  - Winners/losers breakdown
  - Poverty impact
- Add third tab to main page navigation

Closes #1

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
oregon-kicker-refund Ready Ready Preview, Comment Mar 31, 2026 1:39pm

Request Review

Script uses PolicyEngine US microsimulation with CPS data to calculate:
- Summary metrics (cost, beneficiaries, average credit)
- Distributional impact by income decile
- Winners/losers breakdown
- Poverty impact

Run with: py scripts/generate_impacts.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Oregon-specific dataset path
- Fix parameter access for reserved word 'or'
- Fix poverty calculation to use MicroSeries mean
- Restore correct Oregon data from analysis notebook

Note: OR.h5 dataset contains national data calibrated to Oregon,
not Oregon-only records. Data files use validated results from
the analysis notebook (analysis-notebooks#130).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updated generate_impacts.py to use the same MicroSeries-based approach
as Keep Your Pay Act. Uses .sum() for auto-weighted sums and only drops
to numpy for weighted averages and child poverty age filtering.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rewrite generate_impacts.py to produce JSON with full KYPA data structure
- Add income bracket breakdown, intra-decile winners/losers by decile
- Update AggregateImpact component to match KYPA styling exactly
- Add stacked bar chart for winners/losers by decile
- Fix ChartWatermark basePath

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Set YEAR = 2024 to use 2024 tax filing data
- Create reform that applies 9.863% kicker rate (since 2024 current law has 0%)
- Baseline: no kicker (2024 current law)
- Reform: kicker at 9.863% applied to 2024 tax liability

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@DTrim99 DTrim99 merged commit 7bb8057 into master Mar 31, 2026
2 checks passed
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 microsimulation impacts tab for 2025 Oregon Kicker

1 participant