Add statewide microsimulation impacts tab#2
Merged
Conversation
- 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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a third tab showing aggregate microsimulation impacts of the 2025 Oregon Kicker credit.
Features
Data Source
Precomputed CSV files generated from the analysis in analysis-notebooks#130
Test Plan
Closes #1
🤖 Generated with Claude Code