How to convert yearly to 3-yearly data

For questions regarding programming in the EViews programming language.

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

VictorV
Posts: 14
Joined: Thu May 24, 2012 6:16 am

How to convert yearly to 3-yearly data

Postby VictorV » Mon Jun 18, 2012 1:38 am

Can someone help me out with converting a yearly time-series into a 3-yearly time series?

I have a time series with yearly data from 1871 until 2011 and I want to convert this to a 3 yearly time series (i.e. 1871,1874,1877...) by deleting all intermediate years.

Thanks!

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

Re: How to convert yearly to 3-yearly data

Postby EViews Gareth » Mon Jun 18, 2012 4:02 am

Code: Select all

pagecontract if @mod(@year,3)=2


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests