Choosing Lag Order¶
Impulso provides two ways to set the lag order for your VAR model.
Fixed lag order¶
If you know the lag order you want, pass an integer:
Automatic selection via information criteria¶
Pass a criterion name ("aic", "bic", or "hq") and Impulso selects the optimal lag via OLS:
You can cap the search range:
Inspecting the criteria table¶
Use select_lag_order directly to see all criteria values: