developing correlation series

For questions regarding programming in the EViews programming language.

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

mfriedrich84
Posts: 1
Joined: Mon Mar 08, 2010 2:15 am

developing correlation series

Postby mfriedrich84 » Mon Mar 08, 2010 2:34 am

Hey to all users,

I want to create a time series of the evolution of the correlation between two variables. It should be something like that:
'Austria
'set sample range to original
smpl 1980M01 2009M12
for !horizon=1 to 360

'define recursive sample range
smpl 1980M01 1980M01+!horizon-1
series cor(cycle_aus_total,cycle_bel_total) But this code doesn't exist.
next

Well, every month I want to re-estimate the correlation and create a new observation to see if there is a convergence to a special correlation level or not.
Does somebody have a hint for me?

thanks
mfriedrich84

tchaithonov
Posts: 168
Joined: Mon Apr 13, 2009 7:39 am
Location: New York City

Re: developing correlation series

Postby tchaithonov » Fri Mar 19, 2010 10:46 am

Perhaps you create a group for the two variables, and do object-specific correlation, copy the correlation value from the table, and then save it into a table/vector?


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests