<?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: R squared and Adj. R squared in fama Macbeth  regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768961#M37606</link>
    <description>&lt;P&gt;Here you are :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=work.sclass;
 by sex; 
run;

ods trace off;
ods output FitStatistics=work.FitStatistics;
proc reg data=work.sclass;
 by sex;
 model height=weight age;
run;

title; footnote;
title1 'mean R**2';
proc means data=work.FitStatistics mean nway;
 where Label2='R-Square';
 var nValue2;
run;

title1 'mean Adjusted R**2';
proc means data=work.FitStatistics mean nway;
 where Label2='Adj R-Sq';
 var nValue2;
run;
title; footnote;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 21:24:57 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2021-09-21T21:24:57Z</dc:date>
    <item>
      <title>R squared and Adj. R squared in fama Macbeth  regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768781#M37596</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I run the following Fama-Macbeth regression and don't receive R squared and Adj. R squared in the results.&lt;/P&gt;&lt;P&gt;Could you please assist in updating this code, so I will receive the&amp;nbsp;R squared and Adj. R squared?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Lior&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;PROC REG data=final&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;outest=fm_reg noprint outseb ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;model y=x1 x2 x3;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;by GVKEY01;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;run;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;quit;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;proc means data=fm_reg n mean t probt ;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768781#M37596</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2021-09-21T13:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: R squared and Adj. R squared in fama Macbeth  regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768895#M37598</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;If you get rid of the 'noprint' option in your PROC REG statement, you will get the R-Square(d) in the output window.&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 17:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768895#M37598</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-09-21T17:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: R squared and Adj. R squared in fama Macbeth  regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768938#M37604</link>
      <description>&lt;P&gt;Thank you Koen for the quick answer!&amp;nbsp; I removed the 'noprint' and receive the results of each separate regression with its R squared and Adj. R squared.&lt;/P&gt;&lt;P&gt;However, I haven't received the mean of all the&amp;nbsp;R squared and Adj. R squared (of all the regressions).&lt;/P&gt;&lt;P&gt;Is there a way to receive the mean&amp;nbsp;R squared and Adj. R squared?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 20:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768938#M37604</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2021-09-21T20:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: R squared and Adj. R squared in fama Macbeth  regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768961#M37606</link>
      <description>&lt;P&gt;Here you are :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=work.sclass;
 by sex; 
run;

ods trace off;
ods output FitStatistics=work.FitStatistics;
proc reg data=work.sclass;
 by sex;
 model height=weight age;
run;

title; footnote;
title1 'mean R**2';
proc means data=work.FitStatistics mean nway;
 where Label2='R-Square';
 var nValue2;
run;

title1 'mean Adjusted R**2';
proc means data=work.FitStatistics mean nway;
 where Label2='Adj R-Sq';
 var nValue2;
run;
title; footnote;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 21:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768961#M37606</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-09-21T21:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: R squared and Adj. R squared in fama Macbeth  regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768965#M37608</link>
      <description>&lt;P&gt;Thank you very much Koen!&lt;/P&gt;&lt;P&gt;it's working&amp;nbsp; (-:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 21:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/768965#M37608</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2021-09-21T21:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: R squared and Adj. R squared in fama Macbeth  regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/770300#M37639</link>
      <description>&lt;P&gt;I know this is going to sound snarky, but why in the world would you want to average Rsq over multiple regressions?&amp;nbsp; Each has its own numerator and denominator, but the overall should have the overall explained variance/overall total variance, with the regressions with the highest variability contributing more to the estimate.&amp;nbsp; The mean of the individual Rsq values would only have value if all of the regressions had approximately the same total variance and approximately the same number of observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 16:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/770300#M37639</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-09-24T16:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: R squared and Adj. R squared in fama Macbeth  regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/770433#M37652</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;I know that including Rsq in Fama Macbeth regression is controversial and I probably will not include it in my paper. I also found that SAS calculates the mean of &lt;U&gt;all&lt;/U&gt; Rsq including Rsq which are equal to 1 due to lack of &amp;nbsp;DF which leads to an overestimation of the mean Rsq.&lt;/P&gt;&lt;P&gt;Thanks for your comment,&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2021 19:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/R-squared-and-Adj-R-squared-in-fama-Macbeth-regression/m-p/770433#M37652</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2021-09-25T19:25:10Z</dc:date>
    </item>
  </channel>
</rss>

