3.11.19.4.1. statsmodels.stats.sandwich_covariance.S_crosssection

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

inner covariance matrix for White on group sums sandwich

I guess for a single categorical group only, categorical group, can also be the product/intersection of groups

This is used by cov_cluster and indirectly verified