Get Log Likelihood function equal to NaN when running VAR-estimation

Hi, I'm fairly new to Matlab, so this might be a stupid question. I'm currently trying to estimate a small, easy VAR-model for economic forecasting. At the moment I have six variables, and 73 (quarterly) observations in the 73x6 matrix Data.
I first define the model, and since I want four lags the code looks as follows:
Spec=vgxset('n', 6, 'nAR', 4, 'Constant', true);
I then estimate the model:
[EstSpec, EstStdErrors, LLF, W] = vgxvarx(Spec, Data(5:end,:),[],Data(1:4,:));
I then want to check if the number of lags is sufficient, but all such test need the loglikelihood function LLF. However, when doing my estimation the LLF is just a single NaN-entry. Any thoughts about why this is so, and what I can do about it?
Thanks in advance! Karl

回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB についてさらに検索

質問済み:

2012 年 5 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by