statsmodels.stats.diagnostic.breaks_cusumolsresid(olsresidual, ddof=0)
[source]
cusum test for parameter stability based on ols residuals
Parameters: |
|
---|---|
Returns: |
|
tested agains R:strucchange
Not clear: Assumption 2 in Ploberger, Kramer assumes that exog x have asymptotically zero mean, x.mean(0) = [1, 0, 0, …, 0] Is this really necessary? I don’t see how it can affect the test statistic under the null. It does make a difference under the alternative. Also, the asymptotic distribution of test statistic depends on this.
From examples it looks like there is little power for standard cusum if exog (other than constant) have mean zero.
Ploberger, Werner, and Walter Kramer. “The Cusum Test with Ols Residuals.” Econometrica 60, no. 2 (March 1992): 271-285.
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.stats.diagnostic.breaks_cusumolsresid.html