statsmodels.stats.sandwich_covariance.cov_hac¶
- statsmodels.stats.sandwich_covariance.cov_hac(results, nlags=None, weights_func=<function weights_bartlett>, use_correction=True)¶
异方差性和自相关稳健协方差矩阵(Newey-West)
假设我们有一个单一的时间序列,其零轴连续且时间周期相等且间隔均匀
注释
仅在 nlags=0 时验证,这只是 White 只是猜测修正因子,需要参考
当除了Bartlett之外的其他核函数可用时,选项可能会发生变化。
Last update:
Oct 16, 2024