Extract a scalar from a time series

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

RDS
Posts: 86
Joined: Thu Feb 17, 2011 9:50 am

Extract a scalar from a time series

Postby RDS » Thu Oct 24, 2013 9:37 am

My scalar should be equal to the value of a time series at the end of the sample period.
Is there a direct way to address the issue without constructing matrices?


Assume that x is a time series.
The approach below does not work with Eviews 7.2

%inidate = "09/15/2011"
%lastdate = "10/01/2013"
{%lastdate} {%lastdate}
scalar scalar_x = x
{%inidate} {%lastdate}
series meanstar_x = scalar_x

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

Re: Extract a scalar from a time series

Postby EViews Gareth » Thu Oct 24, 2013 10:03 am

Use the @elem function.
Follow us on Twitter @IHSEViews


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 13 guests