How do I use AIC and BIC to choose the optimal lags from DFARTEST, DFARDTEST, and DFTSTEST in the GARCH Toolbox?

조회 수: 10 (최근 30일)
I would like to choose the optimal lag from the Dickey-Fuller unit root tests using AICBIC. I know that they can generate the input to AICBIC using GARCHFIT and wanted to know if there is a way to get the LLF from the outputs of the unit root tests.
In other words, is it possible for MATLAB to output loglikehood for each of the Unit Root tests DFARTEST, DFARDTEST, and DFTSTEST, which I can then use in AICBIC?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
There is a trailing output data structure, that contains all of the regression statistics (e.g., coefficients, standard errors, residuals, residual variance, etc ...) that may be accessed. This is currently an undocumented feature, which means we cannot guarantee that this won't change without notice in future releases. However, although undocumented, this structure was designed to support just such an analysis.
To access these statistics, add an extra output argument when running your test. For example, you could use the following syntax:
[H,pValue,TestStat,CriticalValue,OLS] = dfARDTest(Y);
From this summary OLS data structure array (one structure per test performed), the LLF could be computed relatively easily for some assumed distribution (probably Gaussian) from the standard log-likelihood expression, or something like the following for a Gaussian distribution:
T = OLS.sampleSize;
e = OLS.residuals;
V = OLS.residualVariance;
LLF = -0.5 * ( T*log(2*pi*V) - (e' * e) )

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Conditional Variance Models에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by