student_loan_balance has no uprating, but caps repayments and enters net_wealth

Aperta
#2,946 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

Start from variables/gov/hmrc/student_loans/student_loan_balance.py and look at how uprating is declared on comparable debt variables such as mortgage_debt and consumer_debt. Then read the two consumers named in the issue, student_loan_repayment.py (the cap around line 27) and net_wealth.py (line 21), to see the effect of holding the balance flat. Done means a maintainer has chosen one of the three options and the variable plus its documentation reflects that choice; the modelling decision blocks any patch, so a newcomer should not start coding before it is settled.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

student_loan_balance (variables/gov/hmrc/student_loans/student_loan_balance.py) has no uprating, so a dataset's balance is held flat in every later year.

It matters in two places:

  • student_loan_repayment caps repayments at the balance (student_loan_repayment.py:27), so a stale balance can cap repayments too early.
  • net_wealth subtracts it (net_wealth.py:21) next to mortgage_debt and consumer_debt, which are uprated by per-capita GDP. The debts therefore drift apart in later years.

A real balance grows with interest (RPI-linked) and falls with repayments, so no single index is exactly right. Options:

  1. Per-capita GDP, to match the other household debts.
  2. An RPI-based index, closer to how interest accrues.
  3. Leave it flat, but document that choice on the variable.

This needs a modelling decision, so I haven't opened a PR.

Drafted with AI assistance and checked against main at 70014b3.

Lingua principale
Python
Stelle
53
Fork
34
Merge medio
3g 7h
PR unite (30g)
100

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PolicyEngine/policyengine-uk

Tutte le issue di PolicyEngine/policyengine-uk

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.