<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating Multiple Graphs Against Common Y Axis in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-Multiple-Graphs-Against-Common-Y-Axis/m-p/6191#M2473</link>
    <description>Hi.&lt;BR /&gt;
You can compute all means at the same time, then use only one Gplot procedure to produce all graphs.[pre]&lt;BR /&gt;
ODS EXCLUDE ALL ; /* prevents any printing of statistics */&lt;BR /&gt;
ODS OUTPUT summary=work.means ; /* saves means in a dataset */&lt;BR /&gt;
PROC MEANS DATA = work.outcome2 MEAN ;&lt;BR /&gt;
   VAR bad ;&lt;BR /&gt;
   CLASS b1_last12 /* and other explanatory variables */ ;&lt;BR /&gt;
   WAYS 1 ; /* compute means by each explanatory variable */&lt;BR /&gt;
RUN ;&lt;BR /&gt;
ODS SELECT ALL ; /* results now get printed as usual */&lt;BR /&gt;
PROC GPLOT DATA = work.means ;&lt;BR /&gt;
   PLOT bad_mean * (b1_last12 /* and other explanatory variables */ ) ;&lt;BR /&gt;
RUN ; QUIT ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier</description>
    <pubDate>Mon, 07 Jan 2008 21:53:13 GMT</pubDate>
    <dc:creator>Olivier</dc:creator>
    <dc:date>2008-01-07T21:53:13Z</dc:date>
    <item>
      <title>Creating Multiple Graphs Against Common Y Axis</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-Multiple-Graphs-Against-Common-Y-Axis/m-p/6190#M2472</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I currently have 10 explanatory variables, and I would like to compare each one against 1 common dependent variable, separately (which would require 10 different scatterplots).&lt;BR /&gt;
&lt;BR /&gt;
My current process is pretty tedious, it involves the finding the average of the dependent variable for each occurence of each explanatory variable (sample code below)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
CREATE VIEW LINE_SUMMARY1 AS&lt;BR /&gt;
 SELECT b1_last12,&lt;BR /&gt;
AVG(BAD) AS BAD_AVG&lt;BR /&gt;
 FROM WORK.OUTCOME2 &lt;BR /&gt;
GROUP BY b1_last12&lt;BR /&gt;
ORDER BY b1_last12;&lt;BR /&gt;
 QUIT;&lt;BR /&gt;
&lt;BR /&gt;
Then plotting out the explanatory variable against the average outcome of the dependent variable&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PROC GPLOT DATA = LINE_SUMMARY1&lt;BR /&gt;
;&lt;BR /&gt;
PLOT BAD_AVG * (B1_last12) /&lt;BR /&gt;
&lt;BR /&gt;
RUN; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
As it stands, I basically have to run these portions 10 times (for each explanatory var.).  Is there some way to simplify this process?  Thanks!</description>
      <pubDate>Mon, 07 Jan 2008 20:55:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-Multiple-Graphs-Against-Common-Y-Axis/m-p/6190#M2472</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-07T20:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Multiple Graphs Against Common Y Axis</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-Multiple-Graphs-Against-Common-Y-Axis/m-p/6191#M2473</link>
      <description>Hi.&lt;BR /&gt;
You can compute all means at the same time, then use only one Gplot procedure to produce all graphs.[pre]&lt;BR /&gt;
ODS EXCLUDE ALL ; /* prevents any printing of statistics */&lt;BR /&gt;
ODS OUTPUT summary=work.means ; /* saves means in a dataset */&lt;BR /&gt;
PROC MEANS DATA = work.outcome2 MEAN ;&lt;BR /&gt;
   VAR bad ;&lt;BR /&gt;
   CLASS b1_last12 /* and other explanatory variables */ ;&lt;BR /&gt;
   WAYS 1 ; /* compute means by each explanatory variable */&lt;BR /&gt;
RUN ;&lt;BR /&gt;
ODS SELECT ALL ; /* results now get printed as usual */&lt;BR /&gt;
PROC GPLOT DATA = work.means ;&lt;BR /&gt;
   PLOT bad_mean * (b1_last12 /* and other explanatory variables */ ) ;&lt;BR /&gt;
RUN ; QUIT ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier</description>
      <pubDate>Mon, 07 Jan 2008 21:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-Multiple-Graphs-Against-Common-Y-Axis/m-p/6191#M2473</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-01-07T21:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Multiple Graphs Against Common Y Axis</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-Multiple-Graphs-Against-Common-Y-Axis/m-p/6192#M2474</link>
      <description>good point, thanks alot!&lt;BR /&gt;
&lt;BR /&gt;
:-)</description>
      <pubDate>Tue, 08 Jan 2008 13:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-Multiple-Graphs-Against-Common-Y-Axis/m-p/6192#M2474</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-08T13:05:05Z</dc:date>
    </item>
  </channel>
</rss>

