Page 1 of 1

help me!!!!

Posted: Fri Aug 04, 2017 7:58 am
by petertohen
hi all.
I desire to make Eviews implement automatically serial correlation and ADF tests for multiple windows of data. More specifically, I want to divide 22,000 return observations into non-overlapping windows of 100 observations and perform the autocorrelation and unit root test for each block. Moreover, I would prefer to have all results into a single matrix and not to copy the figures from 440 opened ones. Can this procedure be developed in Eviews? What are the involved steps?
thank for all.
have a nicce day

Re: help me!!!!

Posted: Fri Aug 04, 2017 9:20 am
by EViews Matt
Hello,

What you want is definitely possible. An EViews program to do this can loop through each window of 100 observations, setting the sample for each. For each window:

  1. Create and freeze the correlogram view (.correl) of your series (this creates a table).
  2. Extract the correlation information you want from the frozen table.
  3. Create and freeze the unit test view (.uroot) for your series.
  4. Extract the ADF information you want from the frozen table.
As a simplified example, here's a little code that extracts the lag 1 AC values for a series x and stores them in a vector named AC. You should be able to expand and adapt this to your needs.

Code: Select all

vector(@obsrange / 100) AC
for !i = 1 to @obsrange step 100
   smpl !i !i+99
   freeze(tmp) x.correl
   AC((!i + 99) / 100) = @val(tmp(7, 4))
   delete tmp
next