Problem in translating a year-week string into a date series

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

mamo
Posts: 189
Joined: Wed Nov 07, 2012 9:11 am

Problem in translating a year-week string into a date series

Postby mamo » Thu May 20, 2021 6:02 am

Dear Eviews team,

I use Eviews 12 March 2021 built.

I am wondering why the program code below does not provide the expected result in the series "date" (rather, gives -1 for the series date).

Best,
mamo

Code: Select all

wfcreate u 52
alpha  yw="2021-"+@str(@trend+1, "i02")
series date=@dateval(yw, "yyyy-ww")
show date

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

Re: Problem in translating a year-week string into a date series

Postby EViews Gareth » Thu May 20, 2021 7:15 am

EViews does not use week numbers as a valid date format.
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 11 guests