Alaska's reported dividend stays in miscellaneous_income, so the simulated dividend counts it twice
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- data-engineering
Direzione di ricerca
Start with the ASEC OI_VAL/OI_OFF split in packages/microcosm-build/src/microcosm/build/us_runtime/alimony.py, then run scripts/ak_misc.py to reproduce the Alaska share table. The fix must choose a match rule for reported dividends, record it in build provenance, and add a test that fails on any Alaska record whose other income equals a past dividend. The rule needs a decision from maintainers first, so confirm the approach on the issue before you code.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Populace US carries reported Alaska Permanent Fund Dividends in miscellaneous_income, and policyengine-us also computes the dividend for every Alaska resident in ak_permanent_fund_dividend. Both reach market income, so people who reported the dividend count it twice.
Evidence
The file is populace_us_2024.h5 at populace-us-2024-spm-20260909, the default for policyengine-us 2.90.2. These are unweighted person records:
| State | Share of people with miscellaneous_income above 0 |
|---|---|
| Alaska | 11.05% |
| Washington | 0.80% |
| Oregon | 0.69% |
Alaska's most common positive values are $3,284, $1,312, $3,200, $1,702 and $2,622. Several match past payments: $3,284 is the 2022 dividend with its energy relief, $2,622 is the 2022 dividend alone, $1,312 is the 2023 dividend, and $1,702 is the 2024 dividend with its energy relief. So the rule should also take out ak_energy_relief, which policyengine-us computes for some years. I could not match $3,200.
packages/microcosm-build/src/microcosm/build/us_runtime/alimony.py splits ASEC OI_VAL by OI_OFF. Code 20 goes to alimony, code 12 goes to strike benefits, and every other code goes to miscellaneous_income. I found no code that takes the dividend out, and no Census source that names a separate field for it.
scripts/ak_misc.py in ~/reviews/household-spm-recon-2026-11 reproduces the table.
Effect
household_market_incomealready counts both today.spm_unit_market_incomestarts to count both when PolicyEngine/policyengine-us#10573 merges, because it adds the dividend to personmarket_income. That PR fixes the model's own lists, so it should not wait for this one, and its body states the overlap.
Proposed fix
Remove reported dividends from Alaska residents' miscellaneous_income at build time, so that the simulated dividend stands alone. The file can't identify the dividend by source, so the rule needs a tested match on amount and year, or a share taken from the difference between Alaska's rate and comparable states' rates. Either choice should appear in the build's provenance.
Done means
- Alaska's share of people with
miscellaneous_incomeabove 0 falls near that of comparable states. - A test fails on any Alaska record whose reported other income equals a past dividend amount.
- The release notes state the change in Alaska's market income, because it lands in a data release.
🤖 Generated with Claude Code
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 6
- Merge medio
- 2g 3h
- PR unite (30g)
- 182
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PolicyEngine/microcosm
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
PolicyEngine/microcosm#1431 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PolicyEngine/microcosm#1220 ·
I maintainer di solito rispondono entro 1 giorno
-
Update two stale comments about the export-mass reviewed-exclusion registerForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
PolicyEngine/microcosm#1108 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
PolicyEngine/microcosm#475 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
PolicyEngine/microcosm#1515 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PolicyEngine/microcosm
Issue simili
-
needs-area-label
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 2 giorni
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Official-Space-AI/OpenPhysGraspGen#114 ·
I maintainer di solito rispondono entro 2 giorni
-
changelog investigate
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ramnes/notion-sdk-py#441 ·
-
qa_bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA-NeMo/Gym#5644 ·
I maintainer di solito rispondono entro 2 giorni
-
BUG: catalog database credentials printed to logs at startupForse già presa @cjboyle l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno