Rolling window correlation
Posted: Thu Jun 03, 2010 5:47 am
Hi everyone.
This is my first post in this forum and I am already asking questions. :)
I have two series X, Y, and Z and each one of them has 50 yearly observations. I would like to create a 5-year rolling window for the correlation coefficient for all the possible combinations, but I am struggling with it (I know, I am a newbie...).
I have read this thread, but it seems that that will give me a backward correlation (at each point the statistic give us only the previous 10 years) and I want to use five years of data both before and after. Hope this is clear.
Thanks in advance! :D
This is my first post in this forum and I am already asking questions. :)
I have two series X, Y, and Z and each one of them has 50 yearly observations. I would like to create a 5-year rolling window for the correlation coefficient for all the possible combinations, but I am struggling with it (I know, I am a newbie...).
I have read this thread, but it seems that that will give me a backward correlation (at each point the statistic give us only the previous 10 years) and I want to use five years of data both before and after. Hope this is clear.
Thanks in advance! :D