<?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 Output adjusted Rsquared when using PROC MODEL command in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Output-adjusted-Rsquared-when-using-PROC-MODEL-command/m-p/291076#M15474</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me on this little problem I got. I am currently running regressions with Newey-West corrections of standard errors. Hence, the command looks as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MODEL DATA=File.Regress PLOTS = none;&lt;BR /&gt;TITLE 'Regression';&lt;BR /&gt;ENDO return;&lt;BR /&gt;EXOG price;&lt;BR /&gt;INSTRUMENTS _EXOG_;&lt;BR /&gt;PARMS b0 b1;&lt;BR /&gt;return= b0 +b1*price;&lt;BR /&gt;FIT xret_48 / WHITE BREUSCH=(1 price)&lt;BR /&gt;GMM KERNEL=(bart,48,0) VARDEF=n;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This command generates results, so I guess its correct. Now, as I need to run about 100 of these regressions with different independent variables, I'd like have an output file containing the parameter estimates for b0 and b1 with p values, the adjusted R-squared and the standard error of the model and the results of the heteroskedasticity tests , i.e. of White and Breusch-Pagan.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired database outcome variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Title B0 B1 P value b1 P value b1 White's Test Pr&amp;gt; ChiSq &lt;SPAN&gt;Breusch-Pagan&amp;nbsp;Test Pr&amp;gt; ChiSq&lt;/SPAN&gt; Adj R-Sq Model 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I had this, I'd merge the databases later to have an overview of all the different models. So, in order to get to that point, where do I have to add an output request in my command?&lt;/P&gt;&lt;P&gt;Is that even feasible? All I am finding are options for the PROC REG command, but as I am using PROC MODEL, I am slightly confused.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can assist me on this!&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 20:32:17 GMT</pubDate>
    <dc:creator>Frieda</dc:creator>
    <dc:date>2016-08-11T20:32:17Z</dc:date>
    <item>
      <title>Output adjusted Rsquared when using PROC MODEL command</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-adjusted-Rsquared-when-using-PROC-MODEL-command/m-p/291076#M15474</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me on this little problem I got. I am currently running regressions with Newey-West corrections of standard errors. Hence, the command looks as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MODEL DATA=File.Regress PLOTS = none;&lt;BR /&gt;TITLE 'Regression';&lt;BR /&gt;ENDO return;&lt;BR /&gt;EXOG price;&lt;BR /&gt;INSTRUMENTS _EXOG_;&lt;BR /&gt;PARMS b0 b1;&lt;BR /&gt;return= b0 +b1*price;&lt;BR /&gt;FIT xret_48 / WHITE BREUSCH=(1 price)&lt;BR /&gt;GMM KERNEL=(bart,48,0) VARDEF=n;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This command generates results, so I guess its correct. Now, as I need to run about 100 of these regressions with different independent variables, I'd like have an output file containing the parameter estimates for b0 and b1 with p values, the adjusted R-squared and the standard error of the model and the results of the heteroskedasticity tests , i.e. of White and Breusch-Pagan.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired database outcome variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Title B0 B1 P value b1 P value b1 White's Test Pr&amp;gt; ChiSq &lt;SPAN&gt;Breusch-Pagan&amp;nbsp;Test Pr&amp;gt; ChiSq&lt;/SPAN&gt; Adj R-Sq Model 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I had this, I'd merge the databases later to have an overview of all the different models. So, in order to get to that point, where do I have to add an output request in my command?&lt;/P&gt;&lt;P&gt;Is that even feasible? All I am finding are options for the PROC REG command, but as I am using PROC MODEL, I am slightly confused.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can assist me on this!&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 20:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-adjusted-Rsquared-when-using-PROC-MODEL-command/m-p/291076#M15474</guid>
      <dc:creator>Frieda</dc:creator>
      <dc:date>2016-08-11T20:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Output adjusted Rsquared when using PROC MODEL command</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-adjusted-Rsquared-when-using-PROC-MODEL-command/m-p/291079#M15475</link>
      <description>&lt;P&gt;Briefly:&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;Transpose your data from wide to long so that you have three variables: VarName, Price, and Return.&lt;/P&gt;
&lt;P&gt;2) Sort by VARNAME.&lt;/P&gt;
&lt;P&gt;3) &lt;A href="http://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations.html" target="_self"&gt;Use ODS to turn off graphics and exclude all tables&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;4) Use ODS OUTPUT to specify that the output table you want be saved to a data set.&lt;/P&gt;
&lt;P&gt;5) Use the BY VARNAME statement to run all 100 regression with one call to PROC MODEL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have questions about any of these steps, write back regarding which step is confusing and someone can help you or provide a link to an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 20:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-adjusted-Rsquared-when-using-PROC-MODEL-command/m-p/291079#M15475</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-08-11T20:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Output adjusted Rsquared when using PROC MODEL command</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-adjusted-Rsquared-when-using-PROC-MODEL-command/m-p/291248#M15479</link>
      <description>Thank you! That worked out pretty good! Especially the little macro to turn off graphics and exclude all tables is a gamechanger :-). It always took quite a time to load all the tabled in the result viewer and I never even looked at them.</description>
      <pubDate>Fri, 12 Aug 2016 13:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-adjusted-Rsquared-when-using-PROC-MODEL-command/m-p/291248#M15479</guid>
      <dc:creator>Frieda</dc:creator>
      <dc:date>2016-08-12T13:41:58Z</dc:date>
    </item>
  </channel>
</rss>

