iza-institute-of-labor-economics / gettsim

The GErman Taxes and Transfers SIMulator
https://gettsim.readthedocs.io/
GNU Affero General Public License v3.0
54 stars 32 forks source link

Regelbedarf on individual level #771

Closed MImmesberger closed 3 months ago

MImmesberger commented 3 months ago

Closes #668

MImmesberger commented 3 months ago

I realised that we cannot compute Regelbedarf on individual level because of _arbeitsl_geld_2_berechtigte_wohnfläche_bg, which takes the number of individuals in the Bedarfsgemeinschaft as an input.

However, it could be that our current understanding of the berechtigte Wohnfläche is wrong, i.e. that it should be calculated based on the amount of people in the Familiengemeinschaft. This would make sense because then, a child inside and outside the parental BG has the same Regelbedarf. (In the current implementation, the child's contribution to the Regelbedarf of the parental BG may be lower than its Regelbedarf in its own BG if there are more than 4 people in the parental BG). Will do some research regarding that.

Edit: The inputs of _arbeitsl_geld_2_berechtigte_wohnfläche should be on the hh level, not the bg level. I guess this was an error when moving away from tu and hh everywhere. So, the calculation on individual level works perfectly fine.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.63%. Comparing base (d41cc45) to head (9eddaac). Report is 7 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #771 +/- ## ======================================= Coverage 89.62% 89.63% ======================================= Files 52 53 +1 Lines 3768 3771 +3 ======================================= + Hits 3377 3380 +3 Misses 391 391 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

MImmesberger commented 3 months ago

I think this one is finished!