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

BUG: Several policy functions related to "Grundsicherung im Alter" currently fail if a simulation period before 2011 is chosen #685

Open JuergenWiemers opened 8 months ago

JuergenWiemers commented 8 months ago

On the current main branch (3ff81edf) several policy functions related to "Grundsicherung im Alter" fail if a simulation period before 2011 is chosen. The functions

grunds_im_alter_erwerbseink_m
grunds_im_alter_priv_rente_m
_grunds_im_alter_mehrbedarf_schwerbeh_g_m

use the parameters arbeitsl_geld_2_params["regelsatz"][1] and/or arbeitsl_geld_2_params["regelsatz"][2] for all simulation periods. This fails before 2011, since the "Regelbedarfsstufen" according to the RBEG were only introduced in 2011. Before 2011, the regelsatz parameter in arbeitsl_geld_2.yaml only contains a scalar value, the "Eckregelsatz", which is then multiplied by the proper anteil_regelsatz parameters to get the (implicit) "Regelbedarfsstufen".