Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to run Hansen (2000) thresholdtest and thresholdreg for time series observations in Stata 13.1 (Windows)?

    1. Hansen (2000) is "Sample splitting and threshold estimation. Econometrica 68 (3), 575-603". Hansen uploaded his code for estimation and testing in threshold models in Stata at:
    HTML Code:
    http://www.ssc.wisc.edu/~bhansen/progs/ecnmt_00.html
    It includes 2 files ado, Hansen2000.do, DurlaufJohnson.dta and readme.txt.

    In Hansen (2000), it said that "This paper develops a statiscial theory for threshold estimation in the regression context. We allow for either cross-section or time series observations". But Hansen (2000) and Hansen2000.do only illustrate the procedure with cross-section observations (see data from DurlaufJohnson.dta).

    2. This is my time series regression needed to run Hansen (2000) threshold test and threshold regress:
    Click image for larger version

Name:	1.JPG
Views:	1
Size:	15.9 KB
ID:	1304201




    Follow codes in Hansen (2000)'s readme.txt, I try these codes but not working:
    Code:
    thresholdtest reer41_per L(1/4).reer41_per L(0/8).u_pro L(0/8).u_rea L(0/8).u_price, q(u_pro)
    Code:
    thresholdreg reer41_per L(1/4).reer41_per L(0/8).u_pro L(0/8).u_rea L(0/8).u_price, q(u_pro)
    Click image for larger version

Name:	2.JPG
Views:	1
Size:	26.8 KB
ID:	1304202





    3. To more convenient for who interest and might help, I attach my data, called test.dta.

    Moreover, I try the following codes (they seem no problem) but I think they are wrong:
    Code:
    thresholdtest reer41_per u_pro u_rea u_price, q(u_pro)
    Code:
    thresholdreg reer41_per u_pro u_rea u_price, q(u_pro)
    I think time series data must be able to run as Hansen (2000) said, but I don''t firgure out the way.
    Attached Files
    Last edited by Dung Nguyen; 29 Jul 2015, 11:43.
Working...
X