<?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: obtain regression parameters by year in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374410#M19603</link>
    <description>&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=input outest=prms; * outEST !;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Jul 2017 09:44:22 GMT</pubDate>
    <dc:creator>user24feb</dc:creator>
    <dc:date>2017-07-10T09:44:22Z</dc:date>
    <item>
      <title>obtain regression parameters by year</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374406#M19602</link>
      <description>&lt;P&gt;I am running regression based on year i.e. each year would have a different set of coefficients. I would like to obtain a dataset that contains all coefficients per year as well as other stats such as Standard Error, T-value, R-squared etc.&amp;nbsp;My regression code is :&lt;/P&gt;&lt;PRE&gt;proc reg data=input;
by year;
model Y=X1 X2 X3;
run;

&lt;/PRE&gt;&lt;P&gt;My desired output is:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;year      alpha        beta1        beta2        beta3      R-Squared       t-stat_beta1       t-stat_beta2
2000     aaaa         xxx            yyy            zzz     rrrr              tttttt            ttttttt
2001     aaaa         xxx            yyy            zzz     rrrr              ttttt             tttttt
2002     aaaa         xxx            yyy            zzz     rrrr              ttttt             ttttttt
2003     aaaa         xxx            yyy            zzz     rrrr              ttttt             tttttt
.............
..........&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 09:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374406#M19602</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2017-07-10T09:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: obtain regression parameters by year</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374410#M19603</link>
      <description>&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=input outest=prms; * outEST !;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jul 2017 09:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374410#M19603</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2017-07-10T09:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: obtain regression parameters by year</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374411#M19604</link>
      <description>&lt;P&gt;Thanks, I found out that OUTEST option right after posting the question. I have modified my question slightly.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 09:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374411#M19604</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2017-07-10T09:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: obtain regression parameters by year</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374416#M19605</link>
      <description>&lt;P&gt;Use "ODS Trace On/Off"&amp;nbsp;to check the ODS output and use "ODS Output" to get FitStatistics &amp;amp; ParameterEstimates.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 09:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374416#M19605</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2017-07-10T09:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: obtain regression parameters by year</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374446#M19606</link>
      <description>&lt;P&gt;See the article &lt;A href="http://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html" target="_self"&gt;"ODS OUTPUT: Store any statistic created by any SAS procedure"&lt;/A&gt;. The article has an example with PROC REG. The article uses the FitStatistics table, but you can substitute the ParameterEstimates table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To find out the names of ODS tables, see the article &lt;A href="http://blogs.sas.com/content/iml/2015/09/08/ods-table-names.html" target="_self"&gt;"Find the ODS table names produced by any SAS procedure"&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 11:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/obtain-regression-parameters-by-year/m-p/374446#M19606</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-10T11:36:39Z</dc:date>
    </item>
  </channel>
</rss>

