Hi
I have a quarterly workfile and I want to create a dated data table so that annual series are shown every fifth year, e.g.
How can I do this?
Thomas
Dated data table- sample
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- EViews Developer
- Posts: 870
- Joined: Tue Sep 16, 2008 3:50 pm
Re: Dated data table- sample
There is no native way to do it. You will have to freeze the dated data table into a table and then manually remove the columns.
This isn't the most sophisticated bit of code but gets the job done.
This isn't the most sophisticated bit of code but gets the job done.
Code: Select all
'for an annual workfile where the last observation ends in 0 or 5 (ex: 1990 or 1995)
freeze(mytable, mode=overwrite) group01.dtable
for !i=@obsrange to 0 step -1
if(@mod(@obsrange-!i,5)<>0) then
!col = !i+1
mytable.deletecol(!col)
endif
next
-
- Posts: 540
- Joined: Fri Apr 15, 2011 5:35 am
Re: Dated data table- sample
Hi
okey, thanks for this code!
Thomas
okey, thanks for this code!
Thomas
Who is online
Users browsing this forum: No registered users and 18 guests