Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Compute labor supply response revenue_change instead of preserving legacy zero

オープン
#369 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python

調査の方向性

calculate_labor_supply_response(...) から始め、既存の LaborSupplyResponse の出力と legacy の budgetary_impact_lsr の動作を理解するために PR #360 を確認します。revenue_change の意味と符号規約を定義し、それを計算するために必要な利用可能なシミュレーション出力を特定します。アクティブな実行でテスト済みのゼロではない効果が生成され、非アクティブな実行では引き続きゼロとなり、legacy からの差異があれば文書化されていることを完了条件とします。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
7
フォーク
9
平均マージ
13時間 12分
マージ済み PR(30日)
11

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PolicyEngine/policyengine.py のほかの issue

PolicyEngine/policyengine.py の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。