<?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: How do I plot data with a regression line on top of the scatter plot? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-plot-data-with-a-regression-line-on-top-of-the-scatter/m-p/393031#M277796</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try proc sgplot.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2017 18:39:43 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2017-09-04T18:39:43Z</dc:date>
    <item>
      <title>How do I plot data with a regression line on top of the scatter plot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-plot-data-with-a-regression-line-on-top-of-the-scatter/m-p/393029#M277795</link>
      <description>&lt;P&gt;I have some data:&lt;/P&gt;&lt;PRE&gt;x = 1 0 2 0 3 1 0 1 2 0;
y = 16 9 17 12 22 13 8 15 19 11;&lt;/PRE&gt;&lt;P&gt;I'd like to generate an estimated regression function and plot the line on top of the data scatter plot.&lt;/P&gt;&lt;P&gt;I tried searching for a tutorial or some kind of example, but couldn't find any (that I understood and that worked when i tried plugging them in).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 18:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-plot-data-with-a-regression-line-on-top-of-the-scatter/m-p/393029#M277795</guid>
      <dc:creator>Solarmew</dc:creator>
      <dc:date>2017-09-04T18:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot data with a regression line on top of the scatter plot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-plot-data-with-a-regression-line-on-top-of-the-scatter/m-p/393031#M277796</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try proc sgplot.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 18:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-plot-data-with-a-regression-line-on-top-of-the-scatter/m-p/393031#M277796</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2017-09-04T18:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot data with a regression line on top of the scatter plot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-plot-data-with-a-regression-line-on-top-of-the-scatter/m-p/393042#M277797</link>
      <description>&lt;P&gt;Not sure if this is what you are after?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x y;
datalines;
1 16 
0 9 
2 17 
0 12 
3 22 
1 13 
0 8 
1 15 
2 19 
0 11
;

ods select FitPlot;
proc reg data=have;
   model y = x;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Sep 2017 20:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-plot-data-with-a-regression-line-on-top-of-the-scatter/m-p/393042#M277797</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-09-04T20:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot data with a regression line on top of the scatter plot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-plot-data-with-a-regression-line-on-top-of-the-scatter/m-p/393079#M277798</link>
      <description>&lt;P&gt;And the SGPLOT - which gives you more control over the colours and graph attributes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'My demo plot';
proc sgplot data=have;
scatter x=x y=y ;
reg x=x y=y / lineattrs=(color=CXf03b20);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Sep 2017 01:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-plot-data-with-a-regression-line-on-top-of-the-scatter/m-p/393079#M277798</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-05T01:08:01Z</dc:date>
    </item>
  </channel>
</rss>

