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

ENH: Implement aggregation from one grouping (e.g. bg) to another (e.g. fg) #555

Open ChristianZimpelmann opened 1 year ago

ChristianZimpelmann commented 1 year ago

Is your feature request related to a problem?

Describe the solution you would like to see

Describe alternatives you've considered

Leave as is.

hmgaudecker commented 1 year ago

Let's see after #509 is implemented how many nested groupings are left (currently, tu always is a subset of hh, but not many things like that might be left).

MImmesberger commented 5 months ago

Given that we don't want to implement #701 we can close this as well, right?

hmgaudecker commented 5 months ago

Probably yes. Is #445, which triggered this, still relevant? And when can we be sure that one group is a subset of another? Would we need a check?

MImmesberger commented 5 months ago

Correct me if I'm wrong:

The following groups should not be subsets of each other:

The following should always be subsets:

We could make aggregations possible for the second list and rely on user-provided aggregations for the first list.

hmgaudecker commented 5 months ago

Cool, then let's keep this open for the moment. We will need to worry about how to ensure nesting then. Maybe we should restrict ourselves to sums, too.