Children count processing
維護者通常 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,
-
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.
-
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 分鐘
- 30 天內合併 PR
- 8
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
simpaths/SimPaths 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 89/100
維護者通常 1 天內回覆
-
bug
難度 1/5 1 小時以內 新手友好度 65/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
Double hurdle model of labour supply可能已有人在做 @dariaple 於 1 天前認領。 未關閉
simpaths/SimPaths#548 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Sort note on integration test procedure可能已有人在做 @Mariia-Var 於 1 天前認領。 未關閉
simpaths/SimPaths#547 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 simpaths/SimPaths 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 80/100
-
DogFooding
難度 1/5 1 小時以內 新手友好度 88/100
OpenAEV-Platform/openaev#8768 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
federicoiosue/Omni-Notes#1039 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
Dans-Plugins/Medieval-Roleplay-Engine#384 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆