What is wrong with the following command line? Unexpectedly, it produces the error message "Bad date format 'yyyyww' - Missing data generated."
Code: Select all
series x=@makedate(201143, "yyyyww")
Moderators: EViews Gareth, EViews Moderator
Code: Select all
series x=@makedate(201143, "yyyyww")
Code: Select all
wfcreate w 2000 2010
show @dateval("2008W33", "yyyy[W]ww")
show @date @datepart(@date, "WW")
Code: Select all
wfcreate m 2000M01 2010M12
show @dateval("2009M04", "yyyy[M]mm")
Code: Select all
wfcreate u 1
show @dateval("2009M04", "yyyy[M]mm")
Code: Select all
' Create an unordered workfile containing the variables "year" and "week"
wfcreate u 20
series year = 2000+@trend
series week = NA
rndint(week, 51)
week=week+1
sort year week
' create a date series using the variables "year" and "week"
series date=@dateadd(@makedate(year, "yyyy"), week-1, "WW")
' crosscheck
group gr @datepart(date, "WW") week
gr.sheet(c)
Users browsing this forum: No registered users and 1 guest