<?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 Is it possible to show a regression line for specific data points? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154994#M5774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 10 data points representative of years (2003-2012).&amp;nbsp; I would like to show the regression line for the first 8 points (2003-2010) and have the last two points stand alone.&amp;nbsp; Is it possible to accomplish this with GPlot? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2014 18:30:38 GMT</pubDate>
    <dc:creator>KageKitsune28</dc:creator>
    <dc:date>2014-01-28T18:30:38Z</dc:date>
    <item>
      <title>Is it possible to show a regression line for specific data points?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154994#M5774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 10 data points representative of years (2003-2012).&amp;nbsp; I would like to show the regression line for the first 8 points (2003-2010) and have the last two points stand alone.&amp;nbsp; Is it possible to accomplish this with GPlot? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 18:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154994#M5774</guid>
      <dc:creator>KageKitsune28</dc:creator>
      <dc:date>2014-01-28T18:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a regression line for specific data points?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154995#M5775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easily done with SGPLOT.&amp;nbsp; Move the last two points to new columns&amp;nbsp; (x2, y2) and make them missing in the original columns (x, y).&amp;nbsp; Now plot a regressioin plot using original columns (x, y).&amp;nbsp; Overlay a scatter plot with new columns (x2, y2).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 18:35:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154995#M5775</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-01-28T18:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a regression line for specific data points?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154996#M5776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar to what Sanjay was saying about sgplot, you could also do this with gplot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the 'Forecast Line' example, near the middle of this Line Plot chapter for an example:&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/book1/Chapter_02_Lines.pdf" title="http://robslink.com/SAS/book1/Chapter_02_Lines.pdf"&gt;http://robslink.com/SAS/book1/Chapter_02_Lines.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 18:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154996#M5776</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-01-28T18:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a regression line for specific data points?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154997#M5777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!&amp;nbsp; I am going to try that. &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; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 18:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154997#M5777</guid>
      <dc:creator>KageKitsune28</dc:creator>
      <dc:date>2014-01-28T18:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a regression line for specific data points?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154998#M5778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well this was working great until I added the regression line.&amp;nbsp; The regression line is stretching across all 10 points instead of stopping at 8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 20:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154998#M5778</guid>
      <dc:creator>KageKitsune28</dc:creator>
      <dc:date>2014-01-28T20:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a regression line for specific data points?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154999#M5779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using gplot, or sgplot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 20:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/154999#M5779</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-01-28T20:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a regression line for specific data points?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/155000#M5780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gplot &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; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 21:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/155000#M5780</guid>
      <dc:creator>KageKitsune28</dc:creator>
      <dc:date>2014-01-28T21:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a regression line for specific data points?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/155001#M5781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The built-in gplot interpol=rl regression line is going to always go all the way to the axis (I think).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want the regression line to go to a certain point (and not all the way to the axis), then I think you'll need to calculate the points along the regression line (such as using Proc Reg), and then plot those points using interpol=join.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 21:05:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/155001#M5781</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-01-28T21:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show a regression line for specific data points?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/155002#M5782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, just use SGPLOT.&amp;nbsp; &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data fit;&lt;BR /&gt;&amp;nbsp; do x2=1 to 8;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y2=10+2*rannor(2); output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp; x2=.; y2=.;&lt;BR /&gt;&amp;nbsp; do x=9 to 10;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y=10+2*rannor(2); output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sgplot data=fit;&lt;BR /&gt;&amp;nbsp; reg x=x2 y=y2 / name='r';&lt;BR /&gt;&amp;nbsp; scatter x=x y=y;&lt;BR /&gt;&amp;nbsp; keylegend 'r';&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 21:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-show-a-regression-line-for-specific-data/m-p/155002#M5782</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-01-28T21:09:52Z</dc:date>
    </item>
  </channel>
</rss>

