3.11.19.4.18. statsmodels.stats.sandwich_covariance.group_sums

statsmodels.stats.sandwich_covariance.group_sums(x, group)[source]

sum x for each group, simple bincount version, again

group
: array, integer
assumed to be consecutive integers

no dtype checking because I want to raise in that case

uses loop over columns of x

#TODO: remove this, already copied to tools/grouputils