Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
421f4f9
Draft of eink_st_sn.
MImmesberger Mar 1, 2024
6372480
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 1, 2024
c46252d
Update environment.
MImmesberger Mar 1, 2024
26e7f90
Merge branch '690-remove-tu-groupings' of https://github.com/iza-inst…
MImmesberger Mar 1, 2024
229de4b
refactor: rename variable
lars-reimann Mar 4, 2024
75130cf
feat: `_eg` grouping
lars-reimann Mar 4, 2024
f32b7bb
feat: `_ehe` grouping
lars-reimann Mar 4, 2024
4df035d
fix: convert booleans to ints before summing them up
lars-reimann Mar 4, 2024
c9784bf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 4, 2024
137013f
refactor: demographic variable for all possible groupings
lars-reimann Mar 4, 2024
cbb6ad0
fix: use correct groupings for ALG II
lars-reimann Mar 4, 2024
876a68e
fix: use correct groupings for `grunds_im_alter_vermög_freib`
lars-reimann Mar 4, 2024
55a1d7a
fix: use correct groupings for `grunds_im_alter_eink_m`
lars-reimann Mar 4, 2024
4a58c8e
fix: use `_eg` instead of `_hh` for Grundsicherung im Alter
lars-reimann Mar 4, 2024
6ff5618
fix: use correct groupings for `wohngeld_abzüge_st_sozialv_m`
lars-reimann Mar 4, 2024
3eab258
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 4, 2024
3c5f069
Merge branch '690-remove-tu-groupings' of https://github.com/iza-inst…
MImmesberger Mar 4, 2024
d2af552
Update src/_gettsim/taxes/eink_st.py
MImmesberger Mar 4, 2024
d7bc5f1
Change grouping of Freibetrag for Grundsicherung im Alter back to eg.
MImmesberger Mar 4, 2024
79a7ffa
Correct count of children for Wohngeld.
MImmesberger Mar 4, 2024
d459601
Adjust erziehungsgeld.
MImmesberger Mar 4, 2024
f300456
Adjust Elterngeld.
MImmesberger Mar 4, 2024
d25d897
Adjust soli.
MImmesberger Mar 4, 2024
31e69b4
Adjust AbgeltungsSt.
MImmesberger Mar 4, 2024
6f1eab4
Adjust eink_st parameters.
MImmesberger Mar 4, 2024
7d214a4
Adjust Lohnsteuer.
MImmesberger Mar 4, 2024
b8d7609
Adjust Vorsorgeaufwand.
MImmesberger Mar 4, 2024
022e65f
Adjust Freibeträge.
MImmesberger Mar 6, 2024
3dcf032
Adjust Kinderzuschlag.
MImmesberger Mar 6, 2024
0eabc5c
Adjust ALG.
MImmesberger Mar 6, 2024
ff4ed94
Adjust Unterhaltsvorschuss.
MImmesberger Mar 6, 2024
c0b28eb
Update src/_gettsim/config.py
MImmesberger Mar 6, 2024
2bd85fa
Typo.
MImmesberger Mar 6, 2024
1efe11d
Benefit checks.
MImmesberger Mar 6, 2024
f4ab1b4
Adjust docs.
MImmesberger Mar 6, 2024
3fdc8be
Rest of renaming.
MImmesberger Mar 6, 2024
47097eb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 6, 2024
86ef8d4
Document changes.
MImmesberger Mar 6, 2024
40f62d8
Merge branch '690-remove-tu-groupings' of https://github.com/iza-inst…
MImmesberger Mar 6, 2024
c6752ef
Rename _tu in yaml files.
MImmesberger Mar 6, 2024
99d6a19
Rename tu_id in test files.
MImmesberger Mar 6, 2024
b3d9618
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 6, 2024
20b9126
Specify unterhaltsvors result to be monthly.
MImmesberger Mar 6, 2024
21007c6
Start to adjust tests.
MImmesberger Mar 6, 2024
8fa6390
Merge branch '690-remove-tu-groupings' of https://github.com/iza-inst…
MImmesberger Mar 6, 2024
dbe647e
Remove test case for ALG2.
MImmesberger Mar 6, 2024
f1bc88e
Fix typo and adjust benefit_check tests.
MImmesberger Mar 6, 2024
d0d4395
Fix ESt tests.
MImmesberger Mar 6, 2024
185d978
Fix some typos.
MImmesberger Mar 6, 2024
2d32d32
Fix Elterngeld tests.
MImmesberger Mar 6, 2024
29739d8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 6, 2024
bbcba2c
Fix favorability tests.
MImmesberger Mar 7, 2024
4ea3266
Fix full TT tests, add basic input vars and set aggregation source co…
MImmesberger Mar 7, 2024
f52e8cc
Fix Grundrente tests.
MImmesberger Mar 7, 2024
2d5d5ec
Fix Grundsicherung im Alter tests.
MImmesberger Mar 7, 2024
c3d7ced
Kindergeld tests.
MImmesberger Mar 7, 2024
3960148
Kinderzuschlag tests.
MImmesberger Mar 7, 2024
5ea0f89
Lohnsteuer tests.
MImmesberger Mar 7, 2024
7ec1980
Soli tests.
MImmesberger Mar 7, 2024
d7c29ae
Unterhaltsvorschuss tests.
MImmesberger Mar 7, 2024
eeb0e4b
Vorsorgeaufwand tests.
MImmesberger Mar 7, 2024
7964497
Wohngeld tests.
MImmesberger Mar 7, 2024
7f5dee6
Zu versteuerndes Einkommen tests.
MImmesberger Mar 7, 2024
19cb919
Adjust synthetic data creation, rename eigener_bedarf_gedeckt.
MImmesberger Mar 7, 2024
efa9fbd
Rename größe_bg.
MImmesberger Mar 7, 2024
daade2b
Handle Betreuungskosten correctly.
MImmesberger Mar 7, 2024
6f23746
Add ToDo for Wohngeld check.
MImmesberger Mar 7, 2024
3367971
More clean up.
MImmesberger Mar 7, 2024
1422163
Make new var größe available, remove haushaltsgröße_hh.
MImmesberger Mar 7, 2024
9748a3b
Allow source_col of aggregate_by_p_id to be in input cols.
MImmesberger Mar 7, 2024
d307bd9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 7, 2024
30254f4
Merge branch 'main' into 690-remove-tu-groupings
MImmesberger Mar 7, 2024
9697896
Rename Betreuungskosten Träger var.
MImmesberger Mar 7, 2024
2f637e6
Merge branch '690-remove-tu-groupings' of https://github.com/iza-inst…
MImmesberger Mar 7, 2024
382d19a
Merge branch 'main' into 690-remove-tu-groupings
MImmesberger Mar 7, 2024
955f7bc
Adjust visalization notebook.
MImmesberger Mar 7, 2024
61f0df6
Adjust load policy funcs nb.
MImmesberger Mar 7, 2024
e8c068e
Adjust parameters notebook.
MImmesberger Mar 7, 2024
6bc8243
Adjust policy functions nb.
MImmesberger Mar 7, 2024
2482223
Adjust debugging nb.
MImmesberger Mar 7, 2024
4cbaa67
Adjust basic_usage nb.
MImmesberger Mar 7, 2024
7969536
Adjust adavanced usage nb.
MImmesberger Mar 7, 2024
b31fe55
Adjust adavanced usage nb further.
MImmesberger Mar 7, 2024
bebe605
Adjust docs, docstrings and remove eltern function that doesnt make s…
MImmesberger Mar 7, 2024
ae39e73
Merge branch '690-remove-tu-groupings' of https://github.com/iza-inst…
MImmesberger Mar 7, 2024
b77a109
Remove unnecessary line.
MImmesberger Mar 7, 2024
5d4814c
Get rid of pandas warning.
MImmesberger Mar 7, 2024
9cf9a02
Adjust tutorial.
MImmesberger Mar 7, 2024
3d131af
Remove Kinderzuschlag, Wohngeld, ALG2 Günstigerprüfung ToDo.
MImmesberger Mar 7, 2024
e41293f
Fix type error in test_synthetic.
MImmesberger Mar 7, 2024
d609691
Add Bruttokaltmiete Kinderzuschlag test.
MImmesberger Mar 7, 2024
2c870cf
Add additional tests for ESt.
MImmesberger Mar 7, 2024
b6dec5a
Add todo note in grunds_im_alter_m_eg.
MImmesberger Mar 7, 2024
a066496
Fix return type of eink_st_mit_kinderfreib_y_sn_bis_2001.
MImmesberger Mar 7, 2024
7dbc576
Add todo for treatment of bg with retirees and job seekers in Grundsi…
MImmesberger Mar 8, 2024
b3e465a
Change type hint.
MImmesberger Mar 8, 2024
82befa8
Remove obsolete function.
MImmesberger Mar 8, 2024
1bf9bd5
Fix link, change assignee :-)
hmgaudecker Mar 8, 2024
a919e30
Implement some of the code review comments.
MImmesberger Mar 9, 2024
e876dd8
Test new groupings.
MImmesberger Mar 9, 2024
9d2c223
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 9, 2024
c7f6048
Tiny fixes to docstrings.
hmgaudecker Mar 14, 2024
955b6ac
Adjust changes.md.
MImmesberger Mar 15, 2024
15bddad
Remove explicit if statement anz_personen_sn.
MImmesberger Mar 15, 2024
bce61ff
Remove comment in ALG2 Regelbedarf calculation.
MImmesberger Mar 15, 2024
4f90d33
Change time unit for income taxes when it is divided by 12.
MImmesberger Mar 15, 2024
5c6059e
Remove commented out code.
MImmesberger Mar 15, 2024
8b4a1ce
Update src/_gettsim/transfers/kinderzuschl/kinderzuschl_eink.py
MImmesberger Mar 15, 2024
aa0ba11
Update src/_gettsim/transfers/kinderzuschl/kost_unterk.py
MImmesberger Mar 15, 2024
0142f63
Remove hard-coded number in kost_unterk.
MImmesberger Mar 17, 2024
d6b02ee
Remove another hard coded number.
MImmesberger Mar 17, 2024
f62100b
Adjust ToDo.
MImmesberger Mar 17, 2024
9eb423b
Change ToDo note.
MImmesberger Mar 17, 2024
6d2b63e
Change Docstring.
MImmesberger Mar 17, 2024
a63c585
Remove kind condition in arbeitsl_geld_2_eink.
MImmesberger Mar 17, 2024
cf84a0e
Add issue in Wohngeld module.
MImmesberger Mar 17, 2024
1d78ded
Min income is 0 in arbeitsl_geld_2_eink_m.
MImmesberger Mar 17, 2024
8ea298a
Merge branch '690-remove-tu-groupings' of https://github.com/iza-inst…
MImmesberger Mar 17, 2024
782c4c5
Fix calculation of Vorsorgeaufwand.
MImmesberger Mar 17, 2024
44258b2
Fix docstring.
MImmesberger Mar 17, 2024
c549303
Revert "Change time unit for income taxes when it is divided by 12."
MImmesberger Mar 18, 2024
e25637a
Revert "Min income is 0 in arbeitsl_geld_2_eink_m."
MImmesberger Mar 18, 2024
4472af0
Adjust test to make sense.
MImmesberger Mar 18, 2024
849ba6a
Add todo note.
MImmesberger Mar 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ releases are available on [Anaconda.org](https://anaconda.org/conda-forge/gettsi

- {gh}`700` Data columns overwrite functions regardless of time unit
({ghuser}`lars-reimann`).
- {gh}`694` Replace `tu` groupings with correct groupings. ({ghuser}`MImmesberger`,
{ghuser}`lars-reimann`, {ghuser}`hmgaudecker`).
- {gh}`676` Add explicit parent-child links. ({ghuser}`MImmesberger`).
- {gh}`684` New Issue template for yearly parameter updates. ({ghuser}`MImmesberger`).
- {gh}`680` 2024 Parameter Update ({ghuser}`Eric-Sommer`, {ghuser}`MImmesberger`)
Expand Down
10 changes: 5 additions & 5 deletions docs/geps/gep-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ a nutshell and without explanations, these conventions are:
Internal variables should be used sparingly.

1. If names need to be concatenated for making clear what a column name refers to (e.g.,
`arbeitsl_geld_2_vermög_freib_bg` vs. `grunds_im_alter_vermög_freib_hh`), the group
`arbeitsl_geld_2_vermög_freib_bg` vs. `grunds_im_alter_vermög_freib_eg`), the group
(i.e., the tax or transfer) that a variable refers to appears first.

1. Because of the necessity of concatenated column names, there will be conflicts
Expand Down Expand Up @@ -112,15 +112,15 @@ changed, even if it leads to long variable names (e.g., `kinderfreib`,
less error-prone.

If names need to be concatenated for making clear what a column name refers to (e.g.,
`arbeitsl_geld_2_vermög_freib_bg` vs. `grunds_im_alter_vermög_freib_hh`), the group
`arbeitsl_geld_2_vermög_freib_bg` vs. `grunds_im_alter_vermög_freib_eg`), the group
(i.e., the tax or transfer) that a variable refers to appears first.

If a column has a reference to a time unit (i.e., any flow variable like earnings or
transfers), a column is indicated by an underscore plus one of {`y`, `m`, `w`, `d`}.

The default unit a column refers to is an individual. In case a household or tax unit is
the relevant unit, an underscore plus one of {`sn`, `hh`, `fg`, `bg`} will indicate the
level of aggregation.
The default unit a column refers to is an individual. In case of groupings of
individuals, an underscore plus one of {`sn`, `hh`, `fg`, `bg`} will indicate the level
of aggregation.

GETTSIM knows about the following units:

Expand Down
27 changes: 15 additions & 12 deletions docs/geps/gep-02.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ in the data provided by the user (if it comes in the form of a DataFrame) or cal
by GETTSIM. All these arrays have the same length. This length corresponds to the number
of individuals. Functions operate on a single row of data.

If a column name is `[x]_id` with `x` {math}`\in \{` `hh`, `tu` {math}`\}`, it will be
the same for all households, tax units, or any other grouping of individuals specified
in {ref}`GEP 1 <gep-1-column-names>`.
If a column name is `[x]_id` with `x` {math}`\in \{` `_hh`, `_bg`, `_fg`, `_ehe`, `_eg`,
`_sn` {math}`\}`, it will be the same for all households, Bedarfsgemeinschaften, or any
other grouping of individuals specified in {ref}`GEP 1 <gep-1-column-names>`.

Any other column name ending in `_id` indicates a link to a different individual (e.g.,
child-parent relations could be `parent_0_ind_id`, `parent_1_ind_id`; receiver of child
Expand Down Expand Up @@ -57,8 +57,9 @@ N-dimensional arrays, etc.. As usual, everything involves trade-offs, for exampl
- Modern tools for vectorization (e.g., Jax) scale best when working with single rows of
data.

Aggregation to groups of individuals (households, tax units) or referencing data from
other rows (parents, receiver of child benefits) is not trivial with these tools.
Aggregation to groups of individuals (households, Bedarfsgemeinschaften,...) or
referencing data from other rows (parents, receiver of child benefits) is not trivial
with these tools.

## Usage and Impact

Expand Down Expand Up @@ -113,24 +114,26 @@ that case, only the relevant steps apply.
### Grouped values and aggregation functions

Often columns refer to groups of individuals. Such columns have a suffix indicating the
group (see {ref}`GEP 1 <gep-1-column-names>`, currently `_hh` or `_tu`). These columns'
values will be repeated for all individuals who form part of a group.
group (see {ref}`GEP 1 <gep-1-column-names>`, currently `_hh`, `_bg`, `_fg`, `_ehe`,
`_eg`, and `_sn`). These columns' values will be repeated for all individuals who form
part of a group.

By default, GETTSIM will check consistency on input columns in this respect. Users will
be able to turn this check off.

Aggregation functions will be provided by GETTSIM.

- Aggregation will always start from the individual level. If aggregation from, say, tax
unit to household is required (and possible), users will first need to provide an
appropriate individual-level column (e.g., by dividing some tax unit-level aggregate
by the number of members in the tax unit)
- Aggregation will always start from the individual level. If aggregation at the, say,
Bedarfsgemeinschaft-level to the household-level is required (and possible), users
will first need to provide an appropriate individual-level column (e.g., by dividing
some Bedarfsgemeinschaft-level aggregate by the number of indviduals within the same
Bedarfsgemeinschaft)

- As outlined in {ref}`GEP 4 <gep-4-aggregation-by-group-functions>` users will need to
specify:

- The stringified name of the aggregated variable. This **must** end with a feasible
unit of aggregation, i.e., `_hh` or `_tu`
unit of aggregation, i.e., `_hh`, `_bg`, `_fg`, `_ehe`, `_eg`, or `_sn`
- The stringified name of the original variable.
- The type of aggregation {math}`\in \{` `sum`, `mean`, `max`, `min`, `any` {math}`\}`

Expand Down
45 changes: 23 additions & 22 deletions docs/geps/gep-04.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ GETTSIM; this is irrelevant for the DAG.
Function arguments can be of three kinds:

- User-provided input variables (e.g., `bruttolohn_m`).
- Outputs of other functions in the taxes and transfers system (e.g., `eink_st_y_tu`).
- Outputs of other functions in the taxes and transfers system (e.g., `eink_st_y_sn`).
- Parameters of the taxes and transfers system, which are pre-defined and always end in
`_params` (e.g., `ges_rentenv_params`).

Expand All @@ -80,43 +80,44 @@ is able to replace this function with her own version.
See the following example for capital income taxes.

```python
def abgelt_st_y_tu(zu_verst_kapitaleink_y_tu: float, abgelt_st_params: dict) -> float:
"""Calculate Abgeltungssteuer on tax unit level.
def abgelt_st_y_sn(zu_verst_kapitaleink_y_sn: float, abgelt_st_params: dict) -> float:
"""Calculate Abgeltungssteuer on Steuernummer-level.

Parameters
----------
zu_verst_kapitaleink_y_tu
See :func:`zu_verst_kapitaleink_y_tu`.
zu_verst_kapitaleink_y_sn
See :func:`zu_verst_kapitaleink_y_sn`.
abgelt_st_params
See params documentation :ref:`abgelt_st_params <abgelt_st_params>`.

Returns
-------

"""
return abgelt_st_params["satz"] * zu_verst_kapitaleink_y_tu
return abgelt_st_params["satz"] * zu_verst_kapitaleink_y_sn
```

The function {func}`abgelt_st_y_tu` requires the variable `zu_verst_kapital_eink_y_tu`,
which is the amount of taxable capital income on tax unit level (the latter is implied
by the `_tu` suffix, see {ref}`gep-1`). `zu_verst_kapital_eink_y_tu` must be provided by
the user as a column of the input data or it has to be the name of another function.
`abgelt_st_params` is a dictionary of parameters related to the calculation of
`abgelt_st_y_tu`.
The function {func}`abgelt_st_y_sn` requires the variable `zu_verst_kapital_eink_y_sn`,
which is the amount of taxable capital income on the Steuernummer-level (the latter is
implied by the `_sn` suffix, see {ref}`gep-1`). `zu_verst_kapital_eink_y_sn` must be
provided by the user as a column of the input data or it has to be the name of another
function. It is also possible to specify `zu_verst_kapital_eink_y` and aggregation to
the `sn`-level will happen automatically. `abgelt_st_params` is a dictionary of
parameters related to the calculation of `abgelt_st_y_sn`.

Another function, say

```python
def soli_st_y_tu(
eink_st_mit_kinderfreib_y_tu: float,
anz_erwachsene_tu: int,
abgelt_st_y_tu: float,
def soli_st_y_sn(
eink_st_mit_kinderfreib_y_sn: float,
anz_personen_sn: int,
abgelt_st_y_sn: float,
soli_st_params: dict,
) -> float: ...
```

may use `abgelt_st_y_tu` as an input argument. The DAG backend ensures that the function
`abgelt_st_y_tu` will be executed first.
may use `abgelt_st_y_sn` as an input argument. The DAG backend ensures that the function
`abgelt_st_y_sn` will be executed first.

Note that the type annotations (e.g. `float`) indicate the expected type of each input
and the output of a function, see {ref}`gep-2`.
Expand Down Expand Up @@ -223,13 +224,13 @@ For example, in `demographic_vars.py`, we could have:

```
aggregate_by_group_demographic_vars = {
"anz_erwachsene_tu": {"source_col": "erwachsen", "aggr": "sum"},
"haushaltsgröße_hh": {"aggr": "count"},
"anz_kinder_hh": {"source_col": "kind", "aggr": "sum"},
"anz_personen_hh": {"aggr": "count"},
}
```

The group identifier (`tu_id`, `hh_id`) will be automatically included as an argument;
for `count` no other variable is necessary.
The group identifier (`hh_id`, `sn_id`, `fg_id`, `bg_id`, `eg_id`, `ehe_id`) will be
automatically included as an argument; for `count` nothing else is necessary.

The output type will be the same as the input type. Exceptions:

Expand Down
68 changes: 58 additions & 10 deletions docs/gettsim_objects/input_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ Household identifier

Type: int

(tu_id)=

## `tu_id`

Tax Unit identifier (married couples + kids)

Type: int

(kind)=

## `kind`
Expand Down Expand Up @@ -70,6 +62,54 @@ Single parent

Type: bool

(gemeinsam_veranlagt)=

## `gemeinsam_veranlagt`

Taxes are filed jointly

Type: bool

(p_id_elternteil_1)=

## `p_id_elternteil_1`

Identifier of the first parent

Type: int

(p_id_elternteil_2)=

## `p_id_elternteil_2`

Identifier of the second parent

Type: int

(p_id_ehepartner)=

## `p_id_ehepartner`

Identifier of married partner

Type: int

(p_id_einstandspartner)=

## `p_id_einstandspartner`

Identifier of Einstandspartner

Type: int

(p_id_einstandspartner)=

## `p_id_kindergeld_empf`

Identifier of person that claims Kindergeld for the particular child

Type: int

(wohnort_ost)=

## `wohnort_ost`
Expand Down Expand Up @@ -126,6 +166,14 @@ Monthly childcare expenses for a particular child under the age of 14

Type: float

(p_id_betreuungsk_träger)=

## `p_id_betreuungsk_träger`

Identifier of the person who paid childcare expenses.

Type: float

(sonstig_eink_m)=

## `sonstig_eink_m`
Expand Down Expand Up @@ -303,9 +351,9 @@ Construction year of dwelling

Type: int

(vermögen_bedürft_hh)=
(vermögen_bedürft_bg)=

## `vermögen_bedürft_hh`
## `vermögen_bedürft_bg`

Assets for means testing of
household.{ref}`See this page for more details. <means_testing>`
Expand Down
2 changes: 1 addition & 1 deletion docs/gettsim_objects/means_testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This documentation shall help to understand the composition of the

{ref}`basic input variable <input_variables>`

'vermögen_bedürft_hh'. Despite small differences over the transfers, we decided, for
'vermögen_bedürft_bg'. Despite small differences over the transfers, we decided, for
now, to require only one wealth variable as input and use it for all transfers.

```{note}
Expand Down
14 changes: 7 additions & 7 deletions docs/gettsim_objects/variables_out.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ You can find their individual calculation in the documentation of all {ref}`func
- Monthly amount of unemployment assistance
* - {func}`entgeltp_update <_gettsim.functions.entgeltp_update>`
- Updated earning points for pension claim
* - {func}`abgelt_st_y_tu <_gettsim.functions.abgelt_st_y_tu>`
- Capital income tax on tax unit level
* - {func}`soli_st_y_tu <_gettsim.functions.soli_st_y_tu>`
- Solidarity surcharge on tax unit level
* - {func}`abgelt_st_y_sn <_gettsim.functions.abgelt_st_y_sn>`
- Capital income tax on Steuernummer level
* - {func}`soli_st_y_sn <_gettsim.functions.soli_st_y_sn>`
- Solidarity surcharge on Steuernummer level
* - {func}`kindergeld_m <_gettsim.functions.kindergeld_m>`
- Monthly child benefit
* - {func}`eink_st_y_tu <_gettsim.functions.eink_st_y_tu>`
- Income Tax on tax unit level
* - {func}`eink_st_y_sn <_gettsim.functions.eink_st_y_sn>`
- Income Tax on Steuernummer level
* - {func}`lohnst_m` <_gettsim.functions.lohnst_m>`
- Withholding tax
* - {func}`soli_st_lohnst_m <_gettsim.functions.soli_st_lohnst_m>`
Expand All @@ -42,6 +42,6 @@ You can find their individual calculation in the documentation of all {ref}`func
- Monthly parental leave benefit
* - {func}`wohngeld_m_hh <_gettsim.functions.wohngeld_m_hh>`
- Monthly housing benefit on household level
* - {func}`grunds_im_alter_m_hh <_gettsim.functions.grunds_im_alter_m_hh>`
* - {func}`grunds_im_alter_m_eg <_gettsim.functions.grunds_im_alter_m_eg>`
- Monthly subsistence payment for retirees on household level
```
12 changes: 6 additions & 6 deletions docs/how_to_guides/different_ways_to_load_policy_functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"source": [
"## A Single Function\n",
"\n",
"One way to pass a single function to the tax and transfer system is alongside the `policy_functions`. As an example, we create a function called `kindergeld_m_hh`. The function has no body because it is irrelevant for this guide. The function can be passed to `compute_taxes_and_transfers` alongside the `policy_functions` by placing both objects in a list."
"One way to pass a single function to the tax and transfer system is alongside the `policy_functions`. As an example, we create a function called `kindergeld_m`. The function has no body because it is irrelevant for this guide. The function can be passed to `compute_taxes_and_transfers` alongside the `policy_functions` by placing both objects in a list."
]
},
{
Expand All @@ -51,7 +51,7 @@
"metadata": {},
"outputs": [],
"source": [
"def kindergeld_m_hh():\n",
"def kindergeld_m():\n",
" pass"
]
},
Expand All @@ -65,8 +65,8 @@
"df = compute_taxes_and_transfers(\n",
" data=data,\n",
" params=policy_params,\n",
" functions=[policy_functions, kindergeld_m_hh],\n",
" targets=\"kindergeld_m\",\n",
" functions=[policy_functions, kindergeld_m],\n",
" targets=\"kindergeld_m_hh\",\n",
")\n",
"```\n",
"\n",
Expand All @@ -76,12 +76,12 @@
"\n",
"2. In general, if there are multiple functions with the same name, internal functions have the lowest precedence. After that, the elements in the list passed to the `functions` argument are evaluated element by element. The leftmost element has the lowest precedence and the rightmost element the highest.\n",
"\n",
"3. If `policy_functions` would not be necessary for this example, you can also directly pass the `kindergeld_m_hh` function to the `functions` argument.\n",
"3. If `policy_functions` would not be necessary for this example, you can also directly pass the `kindergeld_m` function to the `functions` argument.\n",
"\n",
" ```python\n",
" df = compute_taxes_and_transfers(\n",
" ...,\n",
" functions=kindergeld_m_hh,\n",
" functions=kindergeld_m,\n",
" ...,\n",
" )\n",
" ```\n",
Expand Down
Loading