linearmodels.shared.covariance.cov_kernel¶
Core kernel covariance estimator.
Mean zero data with shape (n, k).
Kernel weights with shape (m,) for lags 0, 1, …, m - 1. The weight of lag 0 is not used, since the variance is always included with a weight of 1.
Kernel asymptotic covariance with shape (k, k).
ValueError – If the number of weights is larger than the number of observations.