The-Strategy-Unit / The-Strategy-Unit/nhp_model

birth adjustment isn't being applied to some rows

Open
#646 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: must
Dominant language
Python
Stars
18
Forks
3
Avg merge
21h 39m
Merged PRs (30d)
10

Description

birth adjustment now includes babies (0 yo, male+female), but the birth adjustment figures are only available for females aged 15-44. likewise, there are maternity records for females outside that age range (13/14, 45-55).

currently, these rows will all have a demographic (birth) growth of 1 applied to them.

it's worth noting that <15 yo account for 0.0199% of all births, and >44 yo account for 0.503%, so we could probably just ignore these records and use a default value of 1.

for the babies, we would either need to know the age of the mother - need to check the DQ of the matage column

Contributor guide

No contributing guide indexed for this repository

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 tracing the birth adjustment logic and checking the data quality of the matage column for baby records. Review how records for females outside ages 15–44 are currently handled, then agree on the treatment for those groups and verify that no longer receive an unintended adjustment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.