I have a question that I can't seem to find an answer for. I have asked several colleagues and friends that also use E-Views frequently, and still no luck in tracking down an answer.
The question I have relates to graphing. I have a lengthy time series of monthly data and would like to be able to graph one year of data versus another in the same graph. Specifically, I would like the x-axis to display 12 points (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec), and have two series (lines) plotted - 2008 and 2009.
Are there graphing options that will allow for this (preferably in code)? Do I have to separate my time series into smaller annual series, or is there an easier method?
If any of you can offer some assistance as to how I would code this, it would be greatly appreciated.
Cheers,
Travis
Graphing monthly data in a year-over-year format
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
travarch33
- Posts: 1
- Joined: Tue May 11, 2010 9:53 am
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Graphing monthly data in a year-over-year format
There's nothing built in that will do that. You'll have to just create a group containing the series you're interested in, then the same series offset by the number of months between the two years you're interested in, then set the sample to be one year, then graph it.
Which will show the 2005 values of X along side the 2003 values of X.
Code: Select all
group g x x(-24)
smpl 2005 2005
show g.line
Who is online
Users browsing this forum: No registered users and 2 guests
