How to Run unit root tests on part of a series?

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

jmccown
Posts: 3
Joined: Thu Apr 23, 2015 2:50 pm

How to Run unit root tests on part of a series?

Postby jmccown » Sun Jun 21, 2015 12:42 pm

I am doing a monte carlo simulation that generates numbers using nrnd then does a unit root test on them. I have a series that runs from 1850 to 1968 that I'm doing 10,000 monte carlo replications.

Code: Select all

Table adf_stats For !i = 1 to 10000 series ppmtswn = ppm + 2.908 * nrnd freeze(monte,mode=overwrite) ppmtswn.uroot(exog=trend,adf) scalar t_value = @val(monte(7,4)) adf_stats(!i ,1)=t_value next
Is there some way I can run the unit root test on just part of the ppmtswn series. Just from 1860 to 1958?

Thanks for any assistance.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: How to Run unit root tests on part of a series?

Postby EViews Gareth » Sun Jun 21, 2015 1:16 pm

Set the sample with the smpl command prior to running the unit root test.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests