PolicyEngine / PolicyEngine/policyengine-api
Exclude households with negative earnings from baseline earnings amount for LSRs
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18
- Forks
- 33
- Avg merge
- 23h 40m
- Merged PRs (30d)
- 22
Description
Currently the bottom income decile has negative aggregate earnings, despite us filtering out those with negative net income. This flips the sign of the relative earnings effect compared to the absolute earnings effect. We should exclude those with negative baseline earnings from the LSR in the decile table.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the LSR calculation and decile-table code in the PolicyEngine API, then inspect how the existing negative net income filter is applied. Done means households with negative baseline earnings are excluded from the LSR baseline earnings amount and the relative earnings effect no longer reverses sign against the absolute effect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100