How to estimate the optimal number of lags in VAR models from the data?

31 ビュー (過去 30 日間)
Armando MAROZZI
Armando MAROZZI 2020 年 3 月 31 日
コメント済み: Armando MAROZZI 2020 年 6 月 9 日
I am fitting a VAR model and I was wondering which commands (if any) in MATLAB calculates the optimal number of lags given the sample data. All the documentation I find online is on how to do it after the fitted model, I would like to get it before, calculated on my data - a similar function in R is called VARselect. Is there anything similar in MATLAB?
Thanks

採用された回答

azim
azim 2020 年 6 月 9 日
hi,
i dont think there is a built in function for that but you can choose using aic and bic criteria. please follow the example on the following link:
mathworks.com/help/econ/aicbic.html
hope this helps

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConditional Mean Models についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by