dates in @elem

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator

Posts: 28
Joined: Thu Aug 28, 2014 8:08 am

dates in @elem

Postby EviewsUser1 » Thu Jul 27, 2017 12:23 pm

I define the start date of the sample:


and I want to extract a single data point for that series dat using @elem

scalar first_actual=@elem(dat,"1984q1")

but instead of using "1984q1" I would like to use %start

but that does not work. Any suggestions?

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

Re: dates in @elem

Postby EViews Gareth » Thu Jul 27, 2017 12:56 pm

Code: Select all

wfcreate q 1980 2000
series dat=nrnd
%start = "1984q1"
scalar first_actual=@elem(dat,%start)
show first_actual
Follow us on Twitter @IHSEViews

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 7 guests