ARDL, Long-run response, and hypothesis tests

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.
jhusein
Posts: 10
Joined: Fri Jul 20, 2018 11:55 am

ARDL, Long-run response, and hypothesis tests

Unread post by jhusein »

Hi Tom,

I'm estimating quiet few ARDL models and the example/program distriblag.rpf was very helpful. Assuming I'm doing it right and

After extracting the long-run response for example of Y to X1 via

compute arpoly=%eqnlagpoly(0,Y)
compute dlpoly=%eqnlagpoly(0,X1)
compute ardlpoly=%polydiv(dlpoly,arpoly,#)

I'm trying to test first if the long-run response is ZERO and second if the Long-run response is unity.
I appreciate if you (or anyone's) help with the proper test command(s) in RATS to do this? Thanks.
Jamal
TomDoan
Posts: 7702
Joined: Wed Nov 01, 2006 4:36 pm

Re: ARDL, Long-run response, and hypothesis tests

Unread post by TomDoan »

You can use SUMMARIZE to do that. (You have to write the function in terms of the %BETA coefficients). See, for instance, the Harvey textbook example harveyp393.rpf.

<edit>

Upon further review, you can actually do this directly if all the calculations are done in one go:

summarize(numerical) %polyvalue(%eqnlagpoly(0,shortrate),1.0)/%polyvalue(%eqnlagpoly(0,longrate),1.0)

(The %eqnlagpoly functions are the ones that implicitly use the %BETA,so they can't be computed separately from the SUMMARIZE instruction).
jhusein
Posts: 10
Joined: Fri Jul 20, 2018 11:55 am

Re: ARDL, Long-run response, and hypothesis tests

Unread post by jhusein »

TomDoan wrote:You can use SUMMARIZE to do that. (You have to write the function in terms of the %BETA coefficients). See, for instance, the Harvey textbook example harveyp393.rpf.

<edit>

Upon further review, you can actually do this directly if all the calculations are done in one go:

summarize(numerical) %polyvalue(%eqnlagpoly(0,shortrate),1.0)/%polyvalue(%eqnlagpoly(0,longrate),1.0)

(The %eqnlagpoly functions are the ones that implicitly use the %BETA,so they can't be computed separately from the SUMMARIZE instruction).
Many thanks and Yes, all calculations are done in one go.
It works for testing long run response is zero.
Can "summarize" be modified to test if long run response is unity though?
Thanks.
TomDoan
Posts: 7702
Joined: Wed Nov 01, 2006 4:36 pm

Re: ARDL, Long-run response, and hypothesis tests

Unread post by TomDoan »

You can do a test for a long-run value of 1 with

summarize(numerical) %polyvalue(%eqnlagpoly(0,shortrate),1.0)/%polyvalue(%eqnlagpoly(0,longrate),1.0)-1.0


Last bumped by TomDoan on Fri Jul 12, 2024 4:39 pm.
Post Reply