Commit 0ebffe6
committed
Refactor and improve AEI rebate notebook
- Add SIMULATION_YEAR constant (2026) for clarity
- Modularize code with single calculate_rebate_base_statistics() function
- Function handles both household and tax_unit calculations via parameter
- Add year to all table titles and print statements
- Improve ratio column calculation (programmatic, applies to all rows)
- Use constants for official statistics (CENSUS_HOUSEHOLDS_2023, IRS_RETURNS_2022)
- Always pass explicit year to sim.calculate() calls
- Clean up duplicate code between household and tax unit calculations1 parent 2856cd4 commit 0ebffe6
2 files changed
Lines changed: 40 additions & 518 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments