<?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: Writing heteroscedasticity-consistent standard errors to OUTEST data set in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/281787#M59130</link>
    <description>&lt;P&gt;So, what shall I write?&lt;BR /&gt;&lt;BR /&gt;It is really awesome, how much (and quick) help I received here so far.&lt;/P&gt;&lt;P&gt;What you both have written is exactly what I am looking for, thank you very moch, and I have learned something I am sure I will be capable of making use of - for generally being able to writing output from the "results window" into a data set obviously is an enormous gain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I use the "ODS Trace" tool in general to "bracket" my somehow-results-creating statements, to get the necessary information, the name, displayed in the log window.&lt;/P&gt;&lt;P&gt;Then, I include the "ODS output" piece in the statement, the output of which I was interested in in the first place, quasi pointing towards the respective "Output" and in the following, I will receive the data set I was striving for.&lt;/P&gt;&lt;P&gt;That is, how I understood it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now I have got my nice standard errors to play around with.&lt;BR /&gt;&lt;BR /&gt;I am afraid, this will not have been my last question, but once again, thank you very much indeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;I clicked to accept ballards'w answer as a solution and now am not able to accept SteveDenham's answer as a solution, too.&lt;/P&gt;&lt;P&gt;But de facto, they both showed me the way to tackle my problem.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2016 19:39:40 GMT</pubDate>
    <dc:creator>Sinistrum</dc:creator>
    <dc:date>2016-07-01T19:39:40Z</dc:date>
    <item>
      <title>Writing heteroscedasticity-consistent standard errors to OUTEST data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/281712#M59118</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after getting &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Iterative-equation-solving/m-p/278392?nobounce" target="_self"&gt;really great help&lt;/A&gt; on my problem concerning utilizing iterative procedures to solve equations, now, I really would be great, if you could please help me once again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This time, I am struggling with writing regression out to a data set.&lt;/P&gt;&lt;P&gt;In particular, I cannot figure out how to write heteroscedasticity-consistent standard errors to the output data set.&lt;/P&gt;&lt;P&gt;Assume I have a data set "regression_input" and I want to regress y on x, separated by the variable "year". Parameter estimates, standard errors, t-values and corresponding p-values (and various other statistics) are obtained in such a way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=regression_input outest=regression_output tableout noprint;
 	model y = x;
	by year;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I wanted to make use of &amp;nbsp;heteroscedasticity-consistent standard errors, I could let them be &lt;U&gt;displayed&lt;/U&gt; by:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=regression_input outest=regression_output tableout plots(only)=none;
 	model y = x / hcc;
	by year;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But "tableout" will only write "standard" standard errors to my OUTEST-data set, the heteroscedasticity-consistent are only displayed in the result window.&lt;BR /&gt;&lt;BR /&gt;My question is, how can I write the regression output as displayed in the "results" window, including my heteroscedasticity-consistent Standard errors, to my data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be glad, if someone could please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yours sincerely,&lt;/P&gt;&lt;P&gt;Sinistrum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 13:06:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/281712#M59118</guid>
      <dc:creator>Sinistrum</dc:creator>
      <dc:date>2016-07-01T13:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Writing heteroscedasticity-consistent standard errors to OUTEST data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/281775#M59126</link>
      <description>&lt;P&gt;Looks like a job for ODS TRACE. &amp;nbsp;Try this, and see what table contains the standard errors you want. &amp;nbsp;Then use ODS OUTPUT to get that table to a dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS TRACE ON;
proc reg data=regression_input outest=regression_output plots(only)=none;
 	model y = x / hcc;
	by year;
run;
ODS TRACE OFF;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Steve Denham&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>Fri, 01 Jul 2016 17:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/281775#M59126</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-01T17:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Writing heteroscedasticity-consistent standard errors to OUTEST data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/281781#M59129</link>
      <description>&lt;P&gt;The generic approach to getting results window output into a dataset is ODS OUTPUT and identify the appropriate displayed table.&lt;/P&gt;
&lt;P&gt;From the documentation for proc reg with the HCC model option I believe that the result table you want is ParameterEstimates.&lt;/P&gt;
&lt;P&gt;So&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=regression_input outest=regression_output tableout plots(only)=none;
   model y = x / hcc;
   by year;
   ods output ParameterEstimates = MyParametersDataset;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;should put all of the estimates in the dataset MyParametersDataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 17:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/281781#M59129</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-01T17:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Writing heteroscedasticity-consistent standard errors to OUTEST data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/281787#M59130</link>
      <description>&lt;P&gt;So, what shall I write?&lt;BR /&gt;&lt;BR /&gt;It is really awesome, how much (and quick) help I received here so far.&lt;/P&gt;&lt;P&gt;What you both have written is exactly what I am looking for, thank you very moch, and I have learned something I am sure I will be capable of making use of - for generally being able to writing output from the "results window" into a data set obviously is an enormous gain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I use the "ODS Trace" tool in general to "bracket" my somehow-results-creating statements, to get the necessary information, the name, displayed in the log window.&lt;/P&gt;&lt;P&gt;Then, I include the "ODS output" piece in the statement, the output of which I was interested in in the first place, quasi pointing towards the respective "Output" and in the following, I will receive the data set I was striving for.&lt;/P&gt;&lt;P&gt;That is, how I understood it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now I have got my nice standard errors to play around with.&lt;BR /&gt;&lt;BR /&gt;I am afraid, this will not have been my last question, but once again, thank you very much indeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;I clicked to accept ballards'w answer as a solution and now am not able to accept SteveDenham's answer as a solution, too.&lt;/P&gt;&lt;P&gt;But de facto, they both showed me the way to tackle my problem.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 19:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/281787#M59130</guid>
      <dc:creator>Sinistrum</dc:creator>
      <dc:date>2016-07-01T19:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Writing heteroscedasticity-consistent standard errors to OUTEST data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/283582#M59259</link>
      <description>&lt;P&gt;That is OK as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;'s solution is much more complete than mine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 18:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/283582#M59259</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-11T18:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Writing heteroscedasticity-consistent standard errors to OUTEST data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/283585#M59260</link>
      <description>&lt;P&gt;It is nice to read, that it is okay for you.&lt;/P&gt;&lt;P&gt;But, as I said, I appreciate both your contributions.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 19:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Writing-heteroscedasticity-consistent-standard-errors-to-OUTEST/m-p/283585#M59260</guid>
      <dc:creator>Sinistrum</dc:creator>
      <dc:date>2016-07-11T19:08:55Z</dc:date>
    </item>
  </channel>
</rss>

