APGRADIENTTEST - general Andrews-Ploberger tests
This is a procedure for applying the Andrews-Ploberger change point analysis to a more general type of model than the linear regression than the @APBreakTest procedure allows.
The input to this are the series of gradients from maximum likelihood estimation. These can be fetched using the DERIVES option on MAXIMIZE or GARCH. For instance, the following would do a break test on the GARCH(1,1) model estimated in the GARCHUV example:
The input to this are the series of gradients from maximum likelihood estimation. These can be fetched using the DERIVES option on MAXIMIZE or GARCH. For instance, the following would do a break test on the GARCH(1,1) model estimated in the GARCHUV example:
- Code: Select all
garch(p=1,q=1,hseries=hh11,derives=dd) / dlogdm
@apgradienttest(graph)
# dd