<?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: Can I put multiple regression lines on a plot: ? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110193#M4159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you PG!!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2012 19:53:52 GMT</pubDate>
    <dc:creator>Linlin</dc:creator>
    <dc:date>2012-10-29T19:53:52Z</dc:date>
    <item>
      <title>Can I put multiple regression lines on a plot ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110187#M4153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Can I put three regression lines(age vs weight) on the same plot(based on dataset class)?&lt;/P&gt;&lt;P&gt;One line is for a regression line with gender=0, another with gender=1, another with gender=2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; gender=0;&lt;/P&gt;&lt;P&gt;data class2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if sex='M' then gender=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else gender=2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set class1 class2;&lt;/P&gt;&lt;P&gt;proc sort data=class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by gender age;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 16:21:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110187#M4153</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-29T16:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can I put multiple regression lines on a plot: ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110188#M4154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;symbol1 value=none i=r ci=black;&lt;BR /&gt;symbol2 value=none i=r ci=blue;&lt;BR /&gt;symbol3 value=none i=r ci=green;&lt;/P&gt;&lt;P&gt;PROC GPLOT DATA=class;&lt;BR /&gt;PLOT Age *Weight=Gender/&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;RUN;&amp;nbsp; QUIT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 16:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110188#M4154</guid>
      <dc:creator>VD</dc:creator>
      <dc:date>2012-10-29T16:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can I put multiple regression lines on a plot: ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110189#M4155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you VD!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the "regeqn" option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 17:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110189#M4155</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-29T17:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I put multiple regression lines on a plot: ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110190#M4156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;series y=weight x=age / group=gender;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 18:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110190#M4156</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-10-29T18:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can I put multiple regression lines on a plot: ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110191#M4157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you PG!&amp;nbsp; I am not familiar with SAS graphs.&amp;nbsp; I need the regression line.&lt;/P&gt;&lt;P&gt;I found an example on line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1&lt;/P&gt;&lt;P&gt;&amp;nbsp; ’Linear Regression of Height and Weight’;&lt;/P&gt;&lt;P&gt;title2 ’(with 95% Confidence Limits)’;&lt;/P&gt;&lt;P&gt;symbol ci=red cv=blue co=gray value=dot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interpol=rlclm95 ;&lt;/P&gt;&lt;P&gt;proc gplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; plot height*weight / regeqn;&lt;/P&gt;&lt;P&gt;run; quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 18:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110191#M4157</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-29T18:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can I put multiple regression lines on a plot: ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110192#M4158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I should have read more carefully...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reg y=weight x=age / group=gender clm clmtransparency=0.4 lineattrs=(pattern=solid)&lt;/STRONG&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PG&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 19:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110192#M4158</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-10-29T19:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I put multiple regression lines on a plot: ?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110193#M4159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you PG!!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 19:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-put-multiple-regression-lines-on-a-plot/m-p/110193#M4159</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-29T19:53:52Z</dc:date>
    </item>
  </channel>
</rss>

