Average over a sample period

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

krisgrinsh
Posts: 1
Joined: Tue Apr 13, 2021 7:20 am

Average over a sample period

Postby krisgrinsh » Fri May 07, 2021 4:44 pm

Hi,

I would like to calculate the average of a series over three calendar years which will be applied to the fiscal year in question.

So for example, for the 2024-25 fiscal year I would like to calculated the average arithmetic GDP growth for 2022, 2023, 2024. My data is quarterly, starts in 1981 and ends in 2030.

Thank you for the assistance in advance!

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

Re: Average over a sample period

Postby EViews Gareth » Fri May 07, 2021 5:20 pm

Code: Select all

@movav(gdpgrowth, 12)


That will give you the average of the past 12 quarters (i.e. 3 years). Not sure if that is exactly what you want though.
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 16 guests