Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Compute labor supply response revenue_change instead of preserving legacy zero

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Bắt đầu với calculate_labor_supply_response(...) và xem xét PR #360 để hiểu đầu ra LaborSupplyResponse hiện có và hành vi legacy của budgetary_impact_lsr. Xác định ý nghĩa và quy ước dấu cho revenue_change, sau đó xác định các đầu ra mô phỏng hiện có cần thiết để tính giá trị này. Được xem là hoàn tất khi các lần chạy đang hoạt động tạo ra các tác động khác không đã được kiểm thử, các lần chạy không hoạt động vẫn bằng không và mọi khác biệt legacy đều được ghi lại.

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

Mô tả

Context

PR #360 (Add labor supply response macro output) adds a 4.x-compatible LaborSupplyResponse output that preserves the legacy macro output shape.

As part of that parity work, revenue_change is intentionally set to 0.0 because the legacy API initialized budgetary_impact_lsr to zero and never populated it. That preserves existing public behavior, but it leaves a real fiscal-effect gap: callers may reasonably interpret labor_supply_response.revenue_change as the tax/revenue impact caused by labor-supply responses.

Current behavior

calculate_labor_supply_response(...) computes LSR behavioral quantities such as:

  • income_lsr
  • substitution_lsr
  • total_change
  • relative_lsr
  • decile average/relative breakdowns
  • hours effects where supported

But revenue_change remains hard-coded to 0.0 for both active and inactive LSR paths.

Desired behavior

Determine and implement the correct fiscal calculation for LaborSupplyResponse.revenue_change, rather than preserving the legacy zero.

Acceptance criteria

  • Define the intended meaning and sign convention for revenue_change.
  • Compute revenue_change for active LSR runs using available simulation outputs or clearly documented additional required outputs.
  • Preserve zero behavior for inactive LSR runs.
  • Add focused tests for non-zero revenue effects, zero/inactive behavior, and sign convention.
  • Document any intentional divergence from legacy budgetary_impact_lsr behavior.

Related PR: #360

Ngôn ngữ chính
Python
Star
7
Fork
9
Merge trung bình
13 giờ 12 phút
Pull request đã merge (30 ngày)
11

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.py

Tất cả issue của PolicyEngine/policyengine.py

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.