<?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: Regression numbers on SGPLOT in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-numbers-on-SGPLOT/m-p/476926#M30969</link>
    <description>&lt;P&gt;Here's a link to a bunch of SAS suggestions for people using regression; you might find them useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at Number 26 in terms of your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://iainpardoe.com/arm2e/sas-code/" target="_self"&gt;http://iainpardoe.com/arm2e/sas-code/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2018 20:09:51 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2018-07-10T20:09:51Z</dc:date>
    <item>
      <title>Regression numbers on SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-numbers-on-SGPLOT/m-p/476855#M30962</link>
      <description>&lt;P&gt;I have a SGPLOT and I would like to include some regression info on the SGPLOT. I have seen some examples online that include slope R-squared or RMSE. I have a code for SGPLOT and REG separately but I don't know how to display info from PROC REG on the SGPLOT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I have:&lt;/P&gt;&lt;PRE&gt;proc sgplot data=have; 
where Month in (6,7,8)
           and Weekday in (1,2,3,4,5) 
           and hour in (4, 17);
scatter x=Temperature y=Load / group=hour;
title '5 P.M. vs 4 A.M. Load vs Temperature(summer)';
run; &lt;/PRE&gt;&lt;PRE&gt;proc reg data=have;
where Month in (6,7,8);
where also Hour in (4);
where also Weekday in (1,2,3,4,5);
model Load = Temperature;
title 'Weekday Regression at 4 AM';
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jul 2018 15:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-numbers-on-SGPLOT/m-p/476855#M30962</guid>
      <dc:creator>matt23</dc:creator>
      <dc:date>2018-07-10T15:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regression numbers on SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-numbers-on-SGPLOT/m-p/476859#M30963</link>
      <description>&lt;P&gt;Extract them to a data set, add them to your master data set and use MARKER or TEXT to plot them on the graph.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you search on here I'm 99% sure there are examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216327"&gt;@matt23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a SGPLOT and I would like to include some regression info on the SGPLOT. I have seen some examples online that include slope R-squared or RMSE. I have a code for SGPLOT and REG separately but I don't know how to display info from PROC REG on the SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's what I have:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=have; 
where Month in (6,7,8)
           and Weekday in (1,2,3,4,5) 
           and hour in (4, 17);
scatter x=Temperature y=Load / group=hour;
title '5 P.M. vs 4 A.M. Load vs Temperature(summer)';
run; &lt;/PRE&gt;
&lt;PRE&gt;proc reg data=have;
where Month in (6,7,8);
where also Hour in (4);
where also Weekday in (1,2,3,4,5);
model Load = Temperature;
title 'Weekday Regression at 4 AM';
run;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 15:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-numbers-on-SGPLOT/m-p/476859#M30963</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-10T15:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regression numbers on SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-numbers-on-SGPLOT/m-p/476926#M30969</link>
      <description>&lt;P&gt;Here's a link to a bunch of SAS suggestions for people using regression; you might find them useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at Number 26 in terms of your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://iainpardoe.com/arm2e/sas-code/" target="_self"&gt;http://iainpardoe.com/arm2e/sas-code/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 20:09:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regression-numbers-on-SGPLOT/m-p/476926#M30969</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-07-10T20:09:51Z</dc:date>
    </item>
  </channel>
</rss>

