Bug in conversion of weekly datestrings using @ateval

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

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

Bug in conversion of weekly datestrings using @ateval

Postby mamo » Wed Oct 21, 2020 4:27 am

Dear Eviews team,

I use Eviews 11 Sept 19 built 54 bit.

There seems to be a bug when converting weekly date strings to a date value in weekly frequency, as "@dateval(yearweek, "YYYY:WW") provides NA for appropriately defined data.

In contrast, as the example code below shows, the corresponding approaches for monthly, quarterly, or semiannual frequencies work as expected.

So what is wrong with the weekly frequency?

Best mamo

I have detected the following bug (see also example code below)

Code: Select all

wfcreate(page=weekly) w 2000:01 2002:52
alpha yearweek=@strdate("YYYY:WW")
series yw=@dateval(yearweek, "YYYY:WW")
' Shows only NAs!
show yw
pagecreate(page=monthly) m 2000:01 2002:12
alpha yearmonth=@strdate("YYYY:MM")
series ym=@dateval(yearmonth, "YYYY:MM")
' Shows alpha series with the expected date string!
show ym
pagecreate(page=quarterly) q 2000:01 2002:04
alpha yearquarter=@strdate("YYYY:Q")
series yq=@dateval(yearquarter, "YYYY:Q")
' Shows alpha series with the expected date string!
show yq
pagecreate(page=semian) s 2000:01 2002:02
alpha yearsemian=@strdate("YYYY:S")
series ys=@dateval(yearsemian, "YYYY:s")
' Shows alpha series with the expected date string!
show ys

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Bug in conversion of weekly datestrings using @ateval

Postby EViews Steve » Wed Oct 21, 2020 10:42 am

Has been fixed, will release in the next patch.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 18 guests