student_loan_balance has no uprating, but caps repayments and enters net_wealth

Đang mở
#2,946 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
53
Fork
34
Merge trung bình
3 ngày 7 giờ
Pull request đã merge (30 ngày)
100

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PolicyEngine/policyengine-uk

Tất cả issue của PolicyEngine/policyengine-uk

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.