<?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 Proc reg:   Obs*R2 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650598#M78721</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Based on the result of the proc reg below.&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc reg   data = example outest=parameters; 
model  y =  A B C D E F;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How can I use SAS to calculate&amp;nbsp; Obs*Rsquare, instead of using calculator?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 05:25:04 GMT</pubDate>
    <dc:creator>Golf</dc:creator>
    <dc:date>2020-05-26T05:25:04Z</dc:date>
    <item>
      <title>Proc reg:   Obs*R2</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650598#M78721</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Based on the result of the proc reg below.&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc reg   data = example outest=parameters; 
model  y =  A B C D E F;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How can I use SAS to calculate&amp;nbsp; Obs*Rsquare, instead of using calculator?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 05:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650598#M78721</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2020-05-26T05:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg:   Obs*R2</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650617#M78725</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313878"&gt;@Golf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PROC REG assigns a name to each table it creates in the results.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can retrieve them through the ODS OUTPUT:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_reg_details52.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_reg_details52.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&amp;gt; To retrieve the value of the R square (i.e. the % of variability explained by the model), the table name is FITSTATISTICS. Here is the code to be submitted before the PROC REG:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output fitstatistics = _fitstatistics;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What do yo mean by "&lt;SPAN&gt;Obs*Rsquare"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 07:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650617#M78725</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-26T07:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg:   Obs*R2</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650665#M78726</link>
      <description>Dear Ed,&lt;BR /&gt;Thanks for you response. &lt;BR /&gt;Obs*Rsquare is  the number of observation multiply to R-square.&lt;BR /&gt;If I use "ods output fitstatistics = _fitstatistics",  how can I know which symbols are used for the number of observation and the value of R-Square?&lt;BR /&gt;Best,</description>
      <pubDate>Tue, 26 May 2020 10:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650665#M78726</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2020-05-26T10:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg:   Obs*R2</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650676#M78728</link>
      <description>&lt;P&gt;You probably need&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output fitstatistics=fitstatistics nobs=nobs;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;as the number of observations used in the regression is in the NOBS table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;how can I know which symbols are used for the number of observation and the value of R-Square?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;You can know which variables contain the values you want by actually looking at these data sets that are created.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm skeptical that Obs*Rsquare has any particular meaning in a regression; why do you want this value?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 11:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650676#M78728</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-26T11:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg:   Obs*R2</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650725#M78729</link>
      <description>I need obs*R-square to test overidentification based on the method of Sargant test.&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 26 May 2020 13:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-reg-Obs-R2/m-p/650725#M78729</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2020-05-26T13:12:09Z</dc:date>
    </item>
  </channel>
</rss>

