linearmodels.shared.covariance.cov_cluster

cov_cluster(z, clusters)[source]

Core cluster covariance estimator

Parameters:
zndarray

n by k mean zero data array

clustersndarray

n by 1 array

Returns:
ndarray

k by k cluster asymptotic covariance

Return type:

ndarray