Dear Gareth,
Here is a simple example of the problem with this function. Please tell me if I am doing something wrong or if it is a bug (and hopefully if there is a way to solve it):
Code: Select all
genr x=nrnd
genr y=nrnd
equation eq1.ls y c @trend x
freeze(qa) eq1.ubreak 15 @ @trend
As you can see if you run the program, the results are:
Quandt-Andrews unknown breakpoint test
Null Hypothesis: No breakpoints within 15% trimmed data
Varying regressors: All equation variables
Equation Sample: 1 100
Test Sample: 16 86
Number of breaks compared: 71
And indeed the results are different when i do the test using the "equation views" way by clicking directly in the regression window. The problem is that I cannot do this by hand for the 1000's of series I am analyzing.
Many thanks,
Francisco