@mean for selected time periods

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

@mean for selected time periods

Postby vytama » Fri Dec 01, 2017 12:39 pm

Hello,
I have a monthly time series and I would like to take an average of t, t-12 and t-24. is there a way to select an average of the three observations?

something like that:
series a = @mean(value at t, value at t-12, value at t-24)?
Thank you

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

Re: @mean for selected time periods

Postby EViews Gareth » Fri Dec 01, 2017 12:54 pm

Code: Select all

series a = (x+x(-12)+x(-24))/3
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 10 guests