iza-institute-of-labor-economics / gettsim

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

Meta-issue gathering info on parameters/functions that vary by year #449

Open hmgaudecker opened 1 year ago

hmgaudecker commented 1 year ago

Current and desired situation

Currently, we have one humongous set of functions for all years, varying essentially only parameters. Ad-hoc functions like wohngeld_miete_m_hh_ab_2009_bis_2020 notwithstanding.

We will need to improve our handling of how to set up the policy environment. This issue is to gather all cases to keep in mind.

  1. Obvious: Functions that change interface over the years. Just search for _ab_ and _bis_ in the (functions) codebase
  2. Functions that stay the same up to parameter changes, but change name (example: Many components of Arbeitslosengeld II -> Bürgergeld)
  3. Cases where we want to set up derived parameters to use in functions for clarity / consistency / speed instead of the parameters specified in the law (e.g., calculate the threshold for soli_st where the lower rate applies and not the maximum rate, see #444).

I distantly remember similar issues to 3. in the pensions discussion, @ChristianZimpelmann @TeBackh if your memory works better, please add specific examples.

Everybody, if anything comes to your mind, please extend this list!

ChristianZimpelmann commented 1 year ago

I would add:

mjbloemer commented 1 year ago

One additional point that comes to my mind:

hmgaudecker commented 1 year ago

The Kinderzuschlag Höchstbetrag was actually the example I tried to think of above, was looking in the wrong spot. Thanks!

ChristianZimpelmann commented 1 year ago
hmgaudecker commented 1 year ago
  • input variables that are only necessary for certain time periods. ~E.g., currently bürgerg_bezug_vorj is a required input even for years before 2023.~ I actually realized that this is handled already fine. But I leave it here for completeness.

I initially thought you were worried about the edge case of 2022-23, where I guess the state variable should "officially" be arbeitsl_geld_2_bezug_vorj... But that will be for the documentation of required inputs, I guess.

hmgaudecker commented 1 year ago

Broadening the scope of "meta" just slightly:

ChristianZimpelmann commented 11 months ago

Another goal when working on this should be to have DEFAULT_TARGETS date-specific. Some targets do not exist for the whole period we will be supporting (e.g. Kinderzuschlag)