GAME_DATE TEAM_ABBREVIATION MIN
0 2019-10-22 LAC 9.633333
1 2019-10-22 LAC 26.433333
2 2019-10-22 LAC 31.350000
3 2019-10-22 LAC 38.350000
4 2019-10-22 LAC 31.550000
5 2019-10-22 LAC 19.266667
6 2019-10-22 LAC 29.166667
7 2019-10-22 LAC 17.483333
8 2019-10-22 LAC 36.716667
9 2019-10-22 LAL 16.933333
10 2019-10-22 LAL 37.350000
11 2019-10-22 LAL 36.000000
12 2019-10-22 LAL 17.333333
13 2019-10-22 LAL 27.383333
14 2019-10-22 LAL 32.316667
15 2019-10-22 LAL 13.350000
16 2019-10-22 LAL 16.233333
17 2019-10-22 LAL 19.033333
18 2019-10-22 LAL 24.033333
I want to run a regression to predict MIN
which is minutes played by an NBA player in a game.
For each game a teams minutes should sum to at least 240, for example if I ran a regression and got predicted values, for rows 0-8 the sum of the expected values should sum to at least 240.
Is there anything that can be done to add this "constraint" to a regression where there are groups of dependent variables that need to sum to a certain value?