3.11.19.4.19. statsmodels.stats.sandwich_covariance.lagged_groups

statsmodels.stats.sandwich_covariance.lagged_groups(x, lag, groupidx)[source]

assumes sorted by time, groupidx is tuple of start and end values not optimized, just to get a working version, loop over groups