linearmodels.shared.covariance.cov_cluster¶
Core cluster covariance estimator.
Mean zero data with shape (n, k).
Array with shape (n,) that contains the cluster that each observation belongs to.
Cluster asymptotic covariance with shape (k, k).
ValueError – If clusters contains missing values, since the observations they belong to cannot be assigned to a cluster, or has fewer than two groups.