I would like to fit a regression-like model where I have all the predictor-variables on the individual level, but my target value only on some aggregate-level. So for many groups of individuals, I have the summed up target-value but not the individual target.
I could imagine to change OLS a bit and use a function like this:
But I I wanted to ask, if there are better approaches or if there are libraries (preferably in python) for this kind of OLS.
Thank you in advance!
Ps: I asked a similar question and earned a tumbleweed-badge. So I wasn't sure, whether to post this as a new question or edit the old one...