Correlation within rolling time period across large series

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

tk237
Posts: 1
Joined: Wed Aug 24, 2011 11:51 am

Correlation within rolling time period across large series

Postby tk237 » Thu Aug 25, 2011 8:07 am

I have a time series with several thousand observations and want to examine it for correlation within rolling twenty-day periods (so that, for example, if I had 4000 observations, I would have 3,980 different correlograms to examine). I would then like to slice and dice the correlation data into new series comprised of all the 1st-lag correlation, and then all the 2nd-lag correlation, then the 3rd, etc. Obviously, this is impractical to do by changing the sample size over and over. I am new to Eviews programming (the majority of my programming experience is in Java). What's the best way to handle this? Thanks in advance.

(Note - previously posted in wrong forum; earlier post has been deleted.)

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Correlation within rolling time period across large seri

Postby EViews Glenn » Mon Aug 29, 2011 4:21 pm

The simplest way *is* to change the sample over and over again, but using program loops. Have you looked at the documentation on loops. You might also want to look at the example programs describing how to do rolling regression (or search the forums). The ideas there should transfer directly.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest