CUSUMTests - CUSUM, CUSUMQ tests

Use this forum to post complete RATS "procedures". Please be sure to include instructions on using the procedure and detailed references where applicable.

CUSUMTests - CUSUM, CUSUMQ tests

Postby TomDoan » Sun Sep 20, 2009 12:49 pm

Performs CUSUM and CUSUMQ tests of the input series, which should be a series of recursive residuals.

@CusumTests( options ) resids start end

Options

FOOTER=graph footer ["CUSUM Tests"]
HEADER=graph header [none]

Variables Defined

%CDSTAT value of the CUSUM statistic (maximum absolute value)
%SIGNIF (approximate) significance level of the CUSUM
%%CUSUMQ value of CUSUMQ statistic (maximum absolute gap)
%%CUSUMQCV .05 critical value for CUSUMQ


References

For the general technique:

Brown, Durbin & Evans(1975), "Techniques for Testing the Constancy of Regression Relationships over Time", JRSS-B, vol 37, 149-192.

For the significance level on the CUSUM test:

Zeileis(2004), "Alternative Boundaries for CUSUM tests", Statistical Papers, vol 45, no 1, 123-131.

For the critical boundaries on the CUSUMQ test:

Edgerton & Wells(1994), "Critical Values for the Cusumsq Statistic in Medium and Large Sized Samples," Oxford Bulletin of Economics and
Statistics, vol. 56, no 3, 355-365.
Attachments
cusumtests.src
Procedure file - requires RATS 7.00 or later
(3.95 KiB) Downloaded 33 times
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Return to RATS Procedures

Who is online

Users browsing this forum: No registered users and 1 guest