PolicyEngine / PolicyEngine/policyengine-api

Exclude households with negative earnings from baseline earnings amount for LSRs

Open
#1,559 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.