stats.sandwich_covariance.cov_nw_panel()

statsmodels.stats.sandwich_covariance.cov_nw_panel

statsmodels.stats.sandwich_covariance.cov_nw_panel(results, nlags, groupidx, weights_func=<function weights_bartlett>, use_correction='hac') [source]

Panel HAC robust covariance matrix

Assumes we have a panel of time series with consecutive, equal spaced time periods. Data is assumed to be in long format with time series of each individual stacked into one array. Panel can be unbalanced.

登录查看完整内容