rtadf

For questions about EViews Add-ins available from the EViews Add-ins webpage. Note each add-in available on our webpage will have its own individual thread.

Moderators: EViews Gareth, EViews Moderator, EViews Esther

prashant
Posts: 1
Joined: Fri Nov 10, 2017 7:30 am

Re: rtadf

Postby prashant » Fri Nov 10, 2017 6:11 pm

Hi Itamar,
When I run the program having the simulation I have found that the EViews giving message !TRW not defined and is illegal command.Hrnce, I cannot complete the procedure. I am attaching the output for reference.
Looking forward for your reply,
Regards,
Prashant


Itamar wrote:Ok, following Gareth's advice, I added a command option for the rtadf add in (in a quick and dirty way but it seems to work). Note that this is still experimental and it might have some bugs I missed. For it to work, you will need to replace the current rtadf.prg and rtadfsim.prg files which are in your EViews Addins\RTadf library with the attached new files.

Here is a short guide (Later on I will update the user guide):

Options:

model={1,2,3,4}; where 1=adf, 2=radf, 3=sadf, 4=gsadf
trim={}; is the window size (in fraction trems or in no. of observations)

const/trend/none; specification of the deterministic terms in the unit root test equation

info={fixed,aic,hqc,sic,maic,mhqc,msic}; information criteria for the lag length of the unit root test equation
lag={}; maximal lag length for the test equation (if "fixed" is chosen, this will be the fixed lag length)

sim; preform MC simulation for the critical values (this will prompt the simulation dialog once the calculation of the statistic is over)
graph; this will generate a graph of the results
print; this will print the spool with the result and the graph

Example:

The command,

y.rtadf(model=3, trim=0.3, trend, info=fixed, lag=1, graph, print)

will run a SADF test on y where the initial window size is set to 0.3 with a test equation specified with a constant and a trend and with one fixed lag. In addition, it will show a spool which holds the test statistic and a graph.

One caveat I have here is that, at least for now, the command cannot perform the test and the simulation automatically. However, if you wishe to preform the same test to several series having the same sample size and the same window, all you need to do is to do the simulation once, keep the critical values, and then run the same command for the remaining series (with the "sim" option shut off) via a loop.

I'll be happy to get your comments!

Enjoy bubbling...

PS, the addin now enables the user to specify the deterministic terms of the test equation, both in the test dialog and in the simulation dialog. In addition, the add in now calculates the p-value of the test statistic (according to the simulated distribution of the test statistic), but this is still an experimental feature.
Attachments
rtadf.jpg
rtadf.jpg (66.7 KiB) Viewed 28 times


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 2 guests