FUNCTION REFERENCE

archtest

Engle LM test for residual conditional heteroscedasticity.

Engle LM test for residual conditional heteroscedasticity.

Syntax

[h,pValue,stat,cValue] = archtest(res,Lags=L,Alpha=a)

Defaults: L=1 and a=.05. Regresses squared residuals on an intercept and L lagged squares; stat=(T-L)*R^2, with a chi-square distribution on L degrees of freedom. Equal-length vector options perform separate tests; scalars expand and any row vector yields row outputs. Missing observations are rejected.

Example

[h,p,s,c]=archtest([1 -2 3 -1 2 -3 1 2 4 -2 1 -3],Lags=2)

Differences from MATLAB: numeric vectors only; tables/timetables unsupported. Singular or underdetermined regressions are rejected. At most 2048 lags, 1024 tests and 2000000 design elements.

Reference: https://www.mathworks.com/help/econ/archtest.html

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.