<?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: Multiple Plots in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiple-Plots/m-p/536057#M147265</link>
    <description>&lt;P&gt;You can get more control over the graph appearance with proc sgplot. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.heart noautolegend;
reg x=ageAtStart y=cholesterol / degree=2 cli
    markerattrs=(symbol=circlefilled size=4) transparency=0.2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot3.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27209i9CB933836C4363FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot3.png" alt="SGPlot3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 21:02:34 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2019-02-15T21:02:34Z</dc:date>
    <item>
      <title>Multiple Plots</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-Plots/m-p/536001#M147233</link>
      <description>&lt;P&gt;I have regression model of the form Y = X + X^2. I need to plot the observed and the predicted values of Y against X on the same plot. I am thinking of using the &lt;STRONG&gt;overlay&lt;/STRONG&gt; option in&amp;nbsp;&lt;STRONG&gt;PROC REG. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUTPUT P&amp;nbsp;&lt;/STRONG&gt;gives the predicted values as far as I understood. But how do I save it in a variable, say Yhat?&lt;/P&gt;&lt;P&gt;How do I get the predicted values from the regression summary to write the statement&amp;nbsp;&lt;STRONG&gt;plot Y*X Yhat*X/overlay ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 19:37:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-Plots/m-p/536001#M147233</guid>
      <dc:creator>arsinha</dc:creator>
      <dc:date>2019-02-15T19:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Plots</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-Plots/m-p/536006#M147236</link>
      <description>&lt;P&gt;In PROC REG, in the PLOT statement, you get the predicted values via&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;plot y*x predicted.*x/overlay;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_reg_details39.htm&amp;amp;locale=en#statug.reg.stmtplot" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_reg_details39.htm&amp;amp;locale=en#statug.reg.stmtplot&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 19:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-Plots/m-p/536006#M147236</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-15T19:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Plots</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-Plots/m-p/536057#M147265</link>
      <description>&lt;P&gt;You can get more control over the graph appearance with proc sgplot. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.heart noautolegend;
reg x=ageAtStart y=cholesterol / degree=2 cli
    markerattrs=(symbol=circlefilled size=4) transparency=0.2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot3.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27209i9CB933836C4363FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot3.png" alt="SGPlot3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 21:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-Plots/m-p/536057#M147265</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-15T21:02:34Z</dc:date>
    </item>
  </channel>
</rss>

