Compute labor supply response revenue_change instead of preserving legacy zero
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_lsrsubstitution_lsrtotal_changerelative_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_changefor 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_lsrbehavior.
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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PolicyEngine/policyengine.py
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PolicyEngine/policyengine.py#473 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PolicyEngine/policyengine.py#436 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PolicyEngine/policyengine.py#408 ·
-
PolicyEngine/policyengine.py#528 · 1 người được giao ·
-
PolicyEngine/policyengine.py#527 · 1 người được giao ·
Tất cả issue của PolicyEngine/policyengine.py
Issue tương tự
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Đang mởarea: harness bug status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Human-Agent-Society/reef#625 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
learningequality/kolibri#15351 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Name consistency Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eellak/triplestore#65 · 1 bình luận ·