3.11.19.4.22. statsmodels.stats.sandwich_covariance.weights_uniform

statsmodels.stats.sandwich_covariance.weights_uniform(nlags)[source]

uniform weights for HAC

this will be moved to another module

Parameters:

nlags : int

highest lag in the kernel window, this does not include the zero lag

Returns:

kernel : ndarray, (nlags+1,)

weights for uniform kernel