Results 1 to 2 of 2

Thread: SAS graphing help

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

    SAS graphing help

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

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

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

    $\displaystyle \begin{tabular}{cccc|| cccc|| cccc|| cccc|| cccc||}
    1&2&3&4&1&2&3&4&1&2&3&4&1&2&3&4&1&2&3&4\\
    & 1998 & & & & 1999 & & & & 2000 & & & & 2001 & & & 2002 & &\\
    \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
    298
    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: Oct 28th 2008, 09:50 AM
  4. Graphing
    Posted in the Trigonometry Forum
    Replies: 3
    Last Post: Jan 16th 2008, 11:18 AM
  5. help with graphing
    Posted in the Pre-Calculus Forum
    Replies: 1
    Last Post: Dec 9th 2007, 09:23 AM

Search Tags


/mathhelpforum @mathhelpforum