Page 1 of 1

Date Formats

Posted: Wed Dec 01, 2010 9:16 am
by w_nawfal
I've search the manuals thouroughly but cannont find out how to instruct eviews (v.7) via code to lable the x-axis in the format shown in the attached file

currently i'm using this code

s02cuc01.datelabel format(mm) interval(m,1)

which only gives me the months as 01, 02, 03 etc... and does not place the year center and below the axis

Re: Date Formats

Posted: Wed Dec 01, 2010 9:22 am
by EViews Gareth
Not sure on the year part, but the format to get month names is format("MON")

Re: Date Formats

Posted: Wed Dec 01, 2010 1:17 pm
by w_nawfal
thanks Gareth - I needed the "" (!?) guess somethings are meant to be read literally

but the year things is still complexing me more so because of the following.

when done manually, the way the year value is placed below the bottom axis is to activate the "two row date label" option (check box at the bottom of the axis dialogue box)

now i found the code for that - called "duallevel" but it doesn't seem to work. The check box is checked (i discover) but greyed out because when i specify the "Mon" format E-views seems to understand that this is a custom date format and thus disables the two row date label option...

here's my code

s02cuc01.axis(b) duallevel
s02cuc01.datelabel format("Mon") interval(m,1)

thanks for your help

wes

p.s. apologies if my questions are a little too specific ~ i use eview for both analysis and presentation.

Date Formats

Posted: Wed Dec 01, 2010 1:47 pm
by EViews Gareth
Let us get back to you

Re: Date Formats

Posted: Wed Dec 08, 2010 6:29 pm
by EViews Pamela
You're right - EViews interprets your date format as Custom because it has come through the command line, and therefore disables the dual level checkbox. We will improve this, so that EViews interprets the date format you entered and determines which item(s) in the dialog it is equivalent to. If it is an understandable format, it will not be considered custom, and the checkbox should remain enabled.

In the meantime (and possibly for an even better solution), I'd suggest that you experiment with changing your global settings. The same dialog page in the global settings (Options/Graphic defaults/Axes & Scaling/Obs/Date axis) offers a "Date Formats for Auto Labeling" button. If you set your month settings here to "Mon", your graphs may be automatically generated with your desired labels.

Re: Date Formats

Posted: Wed Dec 15, 2010 12:15 pm
by w_nawfal
Thank you Pamela :O)

the finalized outputs of my e-views work are formatted according to predefined templates i've created, so i'll take your advice and change the global defaults on those templates and call it a day !

cheers

Wes