@last and @mean calculations automated

For questions regarding programming in the EViews programming language.

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

billclark
Posts: 1
Joined: Mon Sep 17, 2012 10:41 am

@last and @mean calculations automated

Postby billclark » Mon Jun 02, 2014 12:16 pm

Is there a way to use @last to count backwards.

that is, if my last data point is April 2014 (or 2014Q1) and I want to create an average over the last 10 years, can Eviews do something like:

smpl(@last-10 years, @last)

this way, the average calculation is rolling and automated based on the last non missing data available.

thanks!

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

Re: @last and @mean calculations automated

Postby EViews Gareth » Mon Jun 02, 2014 1:11 pm

I'm not sure I quite follow what you're trying to do / what you're asking.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests