student_loan_balance has no uprating, but caps repayments and enters net_wealth

未关闭
#2,946 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
data

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
53
派生
34
平均合并
3 天 7 小时
30 天内合并 PR
100

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PolicyEngine/policyengine-uk 的其他 Issue

查看 PolicyEngine/policyengine-uk 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。