Skip to content

Instantly share code, notes, and snippets.

@yogabonito
Last active January 15, 2024 10:48
Show Gist options
  • Save yogabonito/b532e20b64587c19198f1aacb5ddfca2 to your computer and use it in GitHub Desktop.
Save yogabonito/b532e20b64587c19198f1aacb5ddfca2 to your computer and use it in GitHub Desktop.
VECM example
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AdKowal
Copy link

AdKowal commented Dec 16, 2023

Thanks for useful example

@wang8586
Copy link

Awesome and thanks for you sharing! I have a question, the function select_order is to find the best lags of VAR model based on information criteria. But the k_ar_diff in function select_coint_rank is the lagged difference (VECM function as well). Should they be subtracted one from the result of select_order? (means k_ar_diff =2 in select_coint_rank and VECM, but not 3 which is the best order in the result of select_order)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment