Real-time programming
Posted: Fri Apr 01, 2011 1:51 am
Hi,
I'm using EViews 6 to calculate real-time estimations, i.e. I'm using loops over vintages to create series, estimate equations etc. for every vintage This works totally fine with %v being my current vintage in the loop, and {%v} being used for dynamic variable names.
However, I noticed that this only works when vintages and periods share the same frequency (e.g. quarters). Using annual data but a quarterly vintage frequency, these loops do not work anymore. Does anyone have an idea how to solve this? One possible way, although a rude one, would be
Any programming efficiency hint would be appreciated too. I considered using pools (with the vintages being cross-sections), but the number of pool functions not being explicitely for panel/pooled data is somewhat limited..
Thanks in advance. Best
Savy
I'm using EViews 6 to calculate real-time estimations, i.e. I'm using loops over vintages to create series, estimate equations etc. for every vintage
Code: Select all
for !vi = @dtoo(%vfirst) to @dtoo(%vlast) ' loop over QUARTERS
%v = @otod(!vi)
...
next
However, I noticed that this only works when vintages and periods share the same frequency (e.g. quarters). Using annual data but a quarterly vintage frequency, these loops do not work anymore. Does anyone have an idea how to solve this? One possible way, although a rude one, would be
Code: Select all
for !vi = @dtoo(%vfirst) to @dtoo(%vlast) ' now a loop over YEARS
%v = @otod(!vi)
...
' for quarter 1
%vq1 = %v + "q1"
...
' for quarter 2
%vq2 = %v + "q2"
...
'etc
...
next
Thanks in advance. Best
Savy