Results 1 to 2 of 2

Math Help - SAS graphing help

  1. #1
    Senior Member
    Joined
    Oct 2009
    Posts
    295
    Thanks
    9

    SAS graphing help

    Does anybody know how I can plot this table in SAS?

    \begin{tabular}{| c | c | p{2cm} | p{2cm} | p{2cm} |}<br />
\hline<br />
Year & Quarter & Model A Forecast Error & Model B Forecast Error & Model C Forecast Error\\<br />
\hline<br />
1998 & 1 & +25 & +15 & -20\\<br />
       & 2 & +12 & +6 & +6\\<br />
       & 3 & +7 & -10 & +15\\<br />
       & 4 & +5 & -3 & -10\\<br />
\hline<br />
\hline<br />
1999 & 1 & +3 & +12 & +8\\<br />
       & 2 & 0 & +4 & -5\\<br />
       & 3 & -4 & -7 & +7\\<br />
       & 4 & -11 & -1 & -8\\<br />
\hline<br />
\hline<br />
2000 & 1 & -17 & +9 & +3\\<br />
       & 2 & -21 & +7 & +10\\<br />
       & 3 & -28 & -12 & -12\\<br />
       & 4 & -34& -5 & +4\\<br />
\hline<br />
\hline<br />
2001 & 1 & -21 & +17 & -7\\<br />
       & 2 & -13 & +3 & +9\\<br />
       & 3 & -7 & -9 & +19\\<br />
       & 4 & -2 & -3 & -7\\<br />
\hline<br />
\hline<br />
2002 & 1 & +5 & +13 & +16\\<br />
       & 2 & +9 & +5 & -6\\<br />
       & 3 & +15 & -10 & -9\\<br />
       & 4 & +19 & -6 & +5\\<br />
\hline<br />
\end{tabular}

    My concerns lie with the horizontal axis. How can I get the axis labeled to look something like this?

    \begin{tabular}{cccc||  cccc||  cccc||  cccc||  cccc||}<br />
1&2&3&4&1&2&3&4&1&2&3&4&1&2&3&4&1&2&3&4\\<br />
 & 1998 & & & & 1999  & & & & 2000 & & & & 2001 & & & 2002 & &\\<br />
\end{tabular}

    I don't need the double lines in between each set of quarters but I would like the year underneath each set to make it obvious as to which year they correspond.

    My alternative would be to label the horizontal axis 1998-Q1, 1998-Q2...

    But I don't know if that's even possible. I'm pretty new to SAS. Any help would be appreciated.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Senior Member
    Joined
    Oct 2009
    Posts
    295
    Thanks
    9
    I was able to figure it out. Thanks anyway
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. graphing
    Posted in the Algebra Forum
    Replies: 6
    Last Post: May 19th 2011, 05:43 AM
  2. Graphing
    Posted in the Math Topics Forum
    Replies: 1
    Last Post: May 23rd 2009, 05:31 PM
  3. graphing of sin and cos
    Posted in the Pre-Calculus Forum
    Replies: 4
    Last Post: October 28th 2008, 09:50 AM
  4. Graphing
    Posted in the Trigonometry Forum
    Replies: 3
    Last Post: January 16th 2008, 11:18 AM
  5. help with graphing
    Posted in the Pre-Calculus Forum
    Replies: 1
    Last Post: December 9th 2007, 09:23 AM

Search Tags


/mathhelpforum @mathhelpforum