Compute rolling correlation

For questions regarding programming in the EViews programming language.

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

AbnormalDistribution
Posts: 13
Joined: Fri Feb 09, 2018 12:07 pm

Compute rolling correlation

Postby AbnormalDistribution » Wed Nov 02, 2022 10:56 pm

Suppose I have two series: x1 and x2. Daily data for 10 years.

While I have read through the rolling regression thread, I'm not sure that I'm able to apply that to rolling correlation. Could someone demonstrate how a program could create a new series based on a rolling window? I'd like to use a rolling 250 size window.

Thanks

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

Re: Compute rolling correlation

Postby EViews Gareth » Thu Nov 03, 2022 8:28 am


Amina77
Posts: 2
Joined: Fri Nov 18, 2022 7:03 am

Re: Compute rolling correlation

Postby Amina77 » Mon Nov 21, 2022 7:25 am

I have the same issue. I have a daily averages data for 25 days of 47 stations , and i am interested in using rolling regression/rolling correlation and wondering how to choose the window size? and how to compute the rolling correlation? any help?


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest