<?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 Using Regression option in PROC SGPLOT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Regression-option-in-PROC-SGPLOT/m-p/321595#M17623</link>
    <description>&lt;P&gt;I was asked to add the rsquared and p-values to a graph that I made using proc sgplot.&amp;nbsp; I found an example that saves the rsquared from proc reg into a macro variable and then prints it in a footnote, but I am not sure that proc reg and the regression in proc sgplot are using the same methods and have the same output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone confirm whether they are?&amp;nbsp; If not, is there a way to print those values within proc sgplot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code I'm currently using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REG DATA = CAUTI_QTR_SIR OUTEST = REG_OUT ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; MODEL SIR = QUARTER / SELECTION = RSQUARE&amp;nbsp; ;&lt;BR /&gt;RUN ;&lt;BR /&gt;&lt;BR /&gt;DATA _NULL_ ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; SET REG_OUT ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; CALL SYMPUT ('RSQ', _RSQ_ ) ;&lt;BR /&gt;RUN ;&lt;BR /&gt;&lt;BR /&gt;FOOTNOTE1 ' ' ;&lt;BR /&gt;FOOTNOTE2 J=L "R-squared = &amp;amp;RSQ" ;&lt;BR /&gt;FOOTNOTE3 ' ' ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC SGPLOT DATA = CAUTI_QTR_SIR ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; SERIES X = QUARTER Y = SIR / MARKERS ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; REG X = QUARTER Y = SIR / LINEATTRS = (COLOR = BLACK) ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; YAXIS LABEL = 'SIR';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; TITLE 'CMC CAUTI SIR 2013 - 2016' ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tina Temples&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2016 15:32:21 GMT</pubDate>
    <dc:creator>tmtemples</dc:creator>
    <dc:date>2016-12-29T15:32:21Z</dc:date>
    <item>
      <title>Using Regression option in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Regression-option-in-PROC-SGPLOT/m-p/321595#M17623</link>
      <description>&lt;P&gt;I was asked to add the rsquared and p-values to a graph that I made using proc sgplot.&amp;nbsp; I found an example that saves the rsquared from proc reg into a macro variable and then prints it in a footnote, but I am not sure that proc reg and the regression in proc sgplot are using the same methods and have the same output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone confirm whether they are?&amp;nbsp; If not, is there a way to print those values within proc sgplot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code I'm currently using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REG DATA = CAUTI_QTR_SIR OUTEST = REG_OUT ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; MODEL SIR = QUARTER / SELECTION = RSQUARE&amp;nbsp; ;&lt;BR /&gt;RUN ;&lt;BR /&gt;&lt;BR /&gt;DATA _NULL_ ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; SET REG_OUT ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; CALL SYMPUT ('RSQ', _RSQ_ ) ;&lt;BR /&gt;RUN ;&lt;BR /&gt;&lt;BR /&gt;FOOTNOTE1 ' ' ;&lt;BR /&gt;FOOTNOTE2 J=L "R-squared = &amp;amp;RSQ" ;&lt;BR /&gt;FOOTNOTE3 ' ' ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC SGPLOT DATA = CAUTI_QTR_SIR ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; SERIES X = QUARTER Y = SIR / MARKERS ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; REG X = QUARTER Y = SIR / LINEATTRS = (COLOR = BLACK) ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; YAXIS LABEL = 'SIR';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; TITLE 'CMC CAUTI SIR 2013 - 2016' ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tina Temples&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 15:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Regression-option-in-PROC-SGPLOT/m-p/321595#M17623</guid>
      <dc:creator>tmtemples</dc:creator>
      <dc:date>2016-12-29T15:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regression option in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Regression-option-in-PROC-SGPLOT/m-p/321600#M17625</link>
      <description>&lt;P&gt;The regression from proc reg and proc sgplot are same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to teh link which confirms the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/40/504.html" target="_blank"&gt;http://support.sas.com/kb/40/504.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:05:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Regression-option-in-PROC-SGPLOT/m-p/321600#M17625</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-12-29T16:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regression option in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Regression-option-in-PROC-SGPLOT/m-p/321602#M17626</link>
      <description>&lt;P&gt;Great!&amp;nbsp; Thank you for the quick response!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Regression-option-in-PROC-SGPLOT/m-p/321602#M17626</guid>
      <dc:creator>tmtemples</dc:creator>
      <dc:date>2016-12-29T16:08:27Z</dc:date>
    </item>
  </channel>
</rss>

