<?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: projecting regression line beyond data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/projecting-regression-line-beyond-data/m-p/841712#M36493</link>
    <description>&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;is referring to (I think) is the "Missing Response Trick", at least that's what it is called in this document (&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3337-2019.pdf" target="_blank" rel="noopener"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3337-2019.pdf&lt;/A&gt;) and if you scroll down to the section entitled "Scoring Data the Old-Fashioned Way", you will find code to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;has written blog posts on everything you might ever want to do in SAS, here's his blog post on the subject.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 18:39:53 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-10-31T18:39:53Z</dc:date>
    <item>
      <title>projecting regression line beyond data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/projecting-regression-line-beyond-data/m-p/841668#M36488</link>
      <description>&lt;P&gt;Hi SAS Forus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a regression line and it only creates this for the x data that I have. How do I get to project beyond the x data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=input;
reg x=months y=change_height / clm cli;
series x=months y=change_height /group=ani markerattrs=(symbol=CircleFilled);
scatter x=months y=change_height /group=ani markerattrs=(symbol=CircleFilled);
xaxis max=20;
yaxis min=-20 max=20;
refline -10 10 / axis=y;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Would this be easier to implement with proc reg?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 15:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/projecting-regression-line-beyond-data/m-p/841668#M36488</guid>
      <dc:creator>linlin87</dc:creator>
      <dc:date>2022-10-31T15:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: projecting regression line beyond data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/projecting-regression-line-beyond-data/m-p/841696#M36492</link>
      <description>&lt;P&gt;My approach would be to add the additional values into the base data for the independent variable(s), x axis,and missing values for the dependent variable(s), y-axis, and use an appropriate regression procedure to create predicted values and use the resulting data set to plot such extrapolated values. Recommend including the estimated confidence limits as well.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 16:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/projecting-regression-line-beyond-data/m-p/841696#M36492</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-31T16:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: projecting regression line beyond data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/projecting-regression-line-beyond-data/m-p/841712#M36493</link>
      <description>&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;is referring to (I think) is the "Missing Response Trick", at least that's what it is called in this document (&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3337-2019.pdf" target="_blank" rel="noopener"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3337-2019.pdf&lt;/A&gt;) and if you scroll down to the section entitled "Scoring Data the Old-Fashioned Way", you will find code to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;has written blog posts on everything you might ever want to do in SAS, here's his blog post on the subject.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 18:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/projecting-regression-line-beyond-data/m-p/841712#M36493</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-31T18:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: projecting regression line beyond data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/projecting-regression-line-beyond-data/m-p/841734#M36494</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;is referring to (I think) is the "Missing Response Trick", at least that's what it is called in this document (&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3337-2019.pdf" target="_blank" rel="noopener"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3337-2019.pdf&lt;/A&gt;) and if you scroll down to the section entitled "Scoring Data the Old-Fashioned Way", you will find code to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;has written blog posts on everything you might ever want to do in SAS, here's his blog post on the subject.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Learned that back about 1986, so I guess it qualifies as "old fashioned". At least we don't really have to use Proc Plot to show results... (Really, not GPlot, not Sgplot but line-printer text based Proc Plot).&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 19:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/projecting-regression-line-beyond-data/m-p/841734#M36494</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-31T19:41:01Z</dc:date>
    </item>
  </channel>
</rss>

