BookmarkSubscribeRSS Feed
new_user1
Calcite | Level 5
How to perform Mcleod-li tets on squared residuals in SAS? Thank you
4 REPLIES 4
sbxkoenk
SAS Super FREQ

Are you talking about this test?

 

To test for heteroscedasticity, the AUTOREG procedure uses the portmanteau Q test statistics (McLeod and Li 1983), Engle’s Lagrange multiplier tests (Engle 1982), tests from Lee and King (1993), and tests from Wong and Li (1995). Test statistics and significance p-values are reported for conditional heteroscedasticity at lags 1 through 12. The Jarque-Bera normality test statistic and its significance level are also reported to test for conditional nonnormality of residuals. The following tests for independence are also supported by the AUTOREG procedure for residual analysis and diagnostic checking: Brock-Dechert-Scheinkman (BDS) test, runs test, turning point test, and the rank version of the von Neumann ratio test.

 

See here :

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_autoreg_overview.htm

 

Cheers,

Koen

sbxkoenk
SAS Super FREQ

Look at these tests :
( variety of model diagnostic information, including the following: )
◦McLeod-Li portmanteau Q test for ARCH disturbances
◦Engle’s LM test for ARCH disturbances
◦Lee and King’s for ARCH disturbances
◦Wong and Li’s test for ARCH disturbances

 

Examples :
SAS® 9.4 and SAS® Viya® 3.5 Programming Documentation | SAS 9.4 / Viya 3.5
SAS/ETS User's Guide
The AUTOREG Procedure
Testing for Heteroscedasticity
https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_autoreg_gettingstarted11.htm

 

Heteroscedasticity and GARCH Models
https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_autoreg_gettingstarted12.htm

 

Ciao,

Koen

new_user1
Calcite | Level 5
Thank you for your replies! I wasn' sure if I could use that test since it's not a regression model but I have calculated squared residuals already. Anyway, I'm not sure what my inputs would be and if I can use the test by entering already calculated values.
sbxkoenk
SAS Super FREQ

Hello,

 

If you have pre-calculated values already

, then I think you have to program the test in a data step or with our matrix language (SAS/IML).

If you have full doc on the test, that should be easy to do.

 

Cheers,

Koen

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1719 views
  • 3 likes
  • 2 in conversation