<?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 creating multiple plots in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-plots/m-p/6188#M1957</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:57:04 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-01-07T20:57:04Z</dc:date>
    <item>
      <title>creating multiple plots</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-plots/m-p/6188#M1957</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:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-plots/m-p/6188#M1957</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-07T20:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: creating multiple plots</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-plots/m-p/6189#M1958</link>
      <description>Take a look at the ODS statistical graphics for proc CORR.  You could do all your scatterplots with 3 lines.&lt;BR /&gt;
&lt;BR /&gt;
add &lt;BR /&gt;
ODS graphics on:&lt;BR /&gt;
before the PROC; add&lt;BR /&gt;
ODS GRAPHICS OFF;&lt;BR /&gt;
after it.&lt;BR /&gt;
Modify the PROC statement to add the options that you want for the plots (look at the SAS reference on the Web).&lt;BR /&gt;
&lt;BR /&gt;
Doc</description>
      <pubDate>Tue, 08 Jan 2008 17:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-plots/m-p/6189#M1958</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2008-01-08T17:38:41Z</dc:date>
    </item>
  </channel>
</rss>

