Inconsistency in the `initial_hhwealth_dist` parameter

オープン 初心者向け
#1,271 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend, data

調査の方向性

TPI.py の initial_b_sp1_prelim の代入箇所から始め、initial_hhwealth_dist の説明と、分布行列 eta および zeta の使われ方を比較してください。初期の家計資産の計算における p.omega[0, :, :] の役割を確認してください。各セルのシェアについて文書化された解釈とコードが一致し、関連するテストまたはモデル実行が成功すれば完了です。

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

説明

bug

There is an inconsistency in the description of the initial_hhwealth_dist parameter. The description of the parameter says: "is an $S \times J$ matrix of percentages representing the percent of total household wealth in the initial period held by households of age $s$ and lifetime income group $j$."

This suggests that the object represents the share of household wealth held in a given $(s,j)$ cell, regardless of the size of the population in that cell.

In contrast, when the initial household wealth is assigned based on this parameter in TPI.py, each household in of a given $(s,j)$ type is assumed to get the share defined in initial_hhwealth_dist:

initial_b_sp1_prelim = p.initial_hhwealth_dist * ss_baseline_vars["B"]

The description of the shares that each $(s,j)$ cell represents in initial_hhwealth_dist is the same as what other distribution matrices represent (e..g, the eta and zeta matrices that distribution total non-pension transfers and bequests, respectively).

To make sure the code aligns with this concept, the line in TPI.py needs to be changed to:

initial_b_sp1_prelim = (p.initial_hhwealth_dist * ss_baseline_vars["B"]) / p.omega[0, :, :]
主要言語
Python
スター
85
フォーク
153
平均マージ
1日 19時間
マージ済み PR(30日)
19

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

PSLmodels/OG-Core のほかの issue

PSLmodels/OG-Core の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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