<?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: How to get regression results out? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-regression-results-out/m-p/27026#M6200</link>
    <description>Thanks very much, Olivier. I followed what you told me and got the results.&lt;BR /&gt;
&lt;BR /&gt;
Best,&lt;BR /&gt;
&lt;BR /&gt;
gingerLee</description>
    <pubDate>Mon, 23 Jun 2008 16:42:35 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-06-23T16:42:35Z</dc:date>
    <item>
      <title>How to get regression results out?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-regression-results-out/m-p/27024#M6198</link>
      <description>I am now running regression using proc reg function. My data set is a panel dataset. It contains 16 years data and for each year, it has thousands of observations. What I want to do is to run regression by each year first and after I get all the regression results out (16 groups of coefficients), I need to get the average of all the coefficients and R-squares. Now by the following statement, I am able to get the average of all the coefficients, but I am not able to get the average of R-squares. Is it possible to get averaged R-squares? Could anyone help me with it? Thanks very much.&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods output parameterestimates=pe;&lt;BR /&gt;
proc reg data=dset;&lt;BR /&gt;
 by year;&lt;BR /&gt;
 model depvar = indvars; run;&lt;BR /&gt;
quit;&lt;BR /&gt;
ods listing;&lt;BR /&gt;
&lt;BR /&gt;
proc means data=pe mean std t probt;&lt;BR /&gt;
 var estimate; class variable;&lt;BR /&gt;
run;

Message was edited by: GingerLee</description>
      <pubDate>Sat, 21 Jun 2008 20:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-regression-results-out/m-p/27024#M6198</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-21T20:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get regression results out?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-regression-results-out/m-p/27025#M6199</link>
      <description>Hi.&lt;BR /&gt;
You should create a second dataset containing R-squares.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods output parameterestimates=pe fitStatistics=fs ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
And then process it in the same way as you did with the coefficients.&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier</description>
      <pubDate>Mon, 23 Jun 2008 07:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-regression-results-out/m-p/27025#M6199</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-06-23T07:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get regression results out?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-regression-results-out/m-p/27026#M6200</link>
      <description>Thanks very much, Olivier. I followed what you told me and got the results.&lt;BR /&gt;
&lt;BR /&gt;
Best,&lt;BR /&gt;
&lt;BR /&gt;
gingerLee</description>
      <pubDate>Mon, 23 Jun 2008 16:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-regression-results-out/m-p/27026#M6200</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-23T16:42:35Z</dc:date>
    </item>
  </channel>
</rss>

