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

Children count processing

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

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

@ANBurdett がすでに取り組んでいます。

2026年9月16日 から。

評価

この issue はまだ評価されていません。

説明

SimPaths bug:
Should use age range 0-17, instead of 0-18:
i.e. getNumberChildren(0,Parameters.AGE_TO_BECOME_RESPONSIBLE-1)
https://github.com/simpaths/SimPaths/blob/b649c6967db2d9cced068c8878a2979725dc39e0/src/main/java/simpaths/model/BenefitUnit.java#L4087

Java code inconsistency with Stata .do files:
Java counts people under 18 who belong to the benefit unit. Stata counts children under 18 who are linked to the person, or to the benefit-unit head in a couple, as their parent. Stata never checks which benefit unit the child is in, and that's where the mismatches come from.

More specifically,

  1. Couples (Stata counts fewer). A child is placed in a couple's unit if it is linked to either partner. But it is only counted if it is linked to the head. Say the survey lists the woman as mother but doesn't list the head as step-father. The child lives in the unit, so Java counts it. It isn't linked to the head, so Stata doesn't.

  2. Single adults (Stata counts more). Every time, both of the child's parents live in the data but aren't recorded as a couple, so each forms their own unit. The child is placed in one parent's unit. The other parent still has the parent link, so Stata counts the child for them too. Java counts the child only in the unit where it lives.

For Spain data,

Group Affected Group size % of group % of all adults
Couples 2,372 (1,186 couples) 263,918 0.90% 0.54%
Singles 212 172,280 0.12% 0.05%
Total 2,584 436,198 — 0.59%
主要言語
Java
スター
26
フォーク
38
平均マージ
11時間 45分
マージ済み PR(30日)
8

環境構築

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

はじめの一歩

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

simpaths/SimPaths のほかの issue

simpaths/SimPaths の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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