APGRADIENTTEST - general Andrews-Ploberger tests

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

APGRADIENTTEST - general Andrews-Ploberger tests

Postby TomDoan » Tue Nov 30, 2010 12:16 pm

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.

apgradienttest.SRC
(9.21 KiB) Downloaded 170 times


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
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: APGRADIENTTEST - general Andrews-Ploberger tests

Postby soju » Tue Nov 30, 2010 7:00 pm

Hi Tom
Thanks so much for the procedure! I just had a bug running it though:
I run an ACD model using maximize and fetch the derivatives dd:
Code: Select all
maximize(method=bhhh,recursive,iterations=150,derives=dd) gln 3 *
@apgradienttest(graph)

as soon as I hit enter after the last line, it appears Rats32s.exe program has stopped working and I have to force to quit.
Also when I run the porcedure WITHOUT the "graph" option, it's not crashing but appears the following:
## OP3. This Instruction Does Not Have An Option TIT
>>>>ction=define,title=<<<<




Regards
soju
 
Posts: 6
Joined: Wed Jun 30, 2010 12:20 am

Re: APGRADIENTTEST - general Andrews-Ploberger tests

Postby TomDoan » Wed Dec 01, 2010 10:43 am

Replace:

report(use=areport,action=define,title="Andrews-Ploberger Break Tests")

with

report(use=areport,action=define)

The TITLE option on REPORT was added with version 7.3.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: APGRADIENTTEST - general Andrews-Ploberger tests

Postby soju » Wed Dec 01, 2010 6:08 pm

great it works now. Thank you so much
soju
 
Posts: 6
Joined: Wed Jun 30, 2010 12:20 am


Return to RATS Procedures

Who is online

Users browsing this forum: No registered users and 0 guests