Skip to content

Instantly share code, notes, and snippets.

@naenumtou
Created October 3, 2022 13:41
Show Gist options
  • Save naenumtou/e4e165286fcbf73b160b5e92a694e763 to your computer and use it in GitHub Desktop.
Save naenumtou/e4e165286fcbf73b160b5e92a694e763 to your computer and use it in GitHub Desktop.
# HAC Result
# 1
lags = int(4 * (df.shape[0] / 100) ** (2 / 9))
print(f'Number of lags: {lags}')
HAC = newResult.get_robustcov_results(
cov_type = 'HAC',
maxlags = lags
)
# Summary
print(HAC.summary())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment