<?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 white test in dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754096#M237748</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using proc model to perform linear regression and want to apply the so-called White test that checks whether the residuals have constant variance.&lt;/P&gt;&lt;P&gt;Now I want these statistics in a dataset, so that I can use them for later processing, but how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have something of the form:&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc model data=dataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms b0 b1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = b0 + b1*x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fit y / white ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I am interested in getting the following output values in a dataset:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aa.png" style="width: 423px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61244iF88D76943E5F007A/image-size/large?v=v2&amp;amp;px=999" role="button" title="aa.png" alt="aa.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 14:58:20 GMT</pubDate>
    <dc:creator>drdee</dc:creator>
    <dc:date>2021-07-14T14:58:20Z</dc:date>
    <item>
      <title>output white test in dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754096#M237748</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using proc model to perform linear regression and want to apply the so-called White test that checks whether the residuals have constant variance.&lt;/P&gt;&lt;P&gt;Now I want these statistics in a dataset, so that I can use them for later processing, but how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have something of the form:&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc model data=dataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms b0 b1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = b0 + b1*x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fit y / white ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I am interested in getting the following output values in a dataset:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aa.png" style="width: 423px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61244iF88D76943E5F007A/image-size/large?v=v2&amp;amp;px=999" role="button" title="aa.png" alt="aa.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 14:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754096#M237748</guid>
      <dc:creator>drdee</dc:creator>
      <dc:date>2021-07-14T14:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: output white test in dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754098#M237749</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you put&lt;/P&gt;
&lt;P&gt;ODS TRACE ON; in front of your PROC MODEL&lt;/P&gt;
&lt;P&gt;, you see the name of all output objects in the LOG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose the name of the output object you are interested in equals "white_heteroscedasticity".&lt;/P&gt;
&lt;P&gt;Then specify just in front of your PROC MODEL:&lt;/P&gt;
&lt;P&gt;ODS TRACE OFF;&lt;/P&gt;
&lt;P&gt;ODS OUTPUT white_heteroscedasticity=work.my_white_dataset;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's the way to capture output objects in a data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 15:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754098#M237749</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-07-14T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: output white test in dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754105#M237751</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally, here's some instructions and explanations on how to capture output that is shown. &lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not certain what the table name is from the limited output you've shown but guessing at HETERO test. The blog post above illustrates how to find the table names if needed or they're listed &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/etsug/etsug_model_sect186.htm" target="_self"&gt;here&lt;/A&gt;. I find the ODS TRACE method simpler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 
 proc model data=dataset;
ods output HeteroTest=want;
    parms b0 b1;
    y = b0 + b1*x;
    fit y / white ;
  run;

 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/339452"&gt;@drdee&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using proc model to perform linear regression and want to apply the so-called White test that checks whether the residuals have constant variance.&lt;/P&gt;
&lt;P&gt;Now I want these statistics in a dataset, so that I can use them for later processing, but how?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have something of the form:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; proc model data=dataset;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; parms b0 b1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = b0 + b1*x;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fit y / white ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I am interested in getting the following output values in a dataset:&lt;/P&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aa.png" style="width: 423px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61244iF88D76943E5F007A/image-size/large?v=v2&amp;amp;px=999" role="button" title="aa.png" alt="aa.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how to do that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 15:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754105#M237751</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-14T15:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: output white test in dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754254#M237807</link>
      <description>Many thanks Koen, this works perfectly!&lt;BR /&gt;For later reference, I found the following in the log:&lt;BR /&gt;&lt;BR /&gt;Output Added:&lt;BR /&gt;-------------&lt;BR /&gt;Name: HeteroTest&lt;BR /&gt;Label: Heteroscedasticity Test&lt;BR /&gt;Template: ets.model.HeteroTest&lt;BR /&gt;Path: Model.OLS.HeteroTest&lt;BR /&gt;&lt;BR /&gt;and then used&lt;BR /&gt;ods output Model.OLS.HeteroTest=work.HeteroTest;&lt;BR /&gt;to write it to a dataset.</description>
      <pubDate>Thu, 15 Jul 2021 09:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754254#M237807</guid>
      <dc:creator>drdee</dc:creator>
      <dc:date>2021-07-15T09:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: output white test in dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754255#M237808</link>
      <description>Thank you very much, Reeze. The ODS TRACE method worked perfectly for me, so I accepted that answer.</description>
      <pubDate>Thu, 15 Jul 2021 09:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754255#M237808</guid>
      <dc:creator>drdee</dc:creator>
      <dc:date>2021-07-15T09:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: output white test in dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754267#M237815</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/339452"&gt;@drdee&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for having marked this topic as solved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods output Model.OLS.HeteroTest=work.HeteroTest;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;... I was not even aware you could specify the "Path".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The "Name" should be enough, like&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods output HeteroTest=work.HeteroTest;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 10:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754267#M237815</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-07-15T10:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: output white test in dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754273#M237819</link>
      <description>Hi again,&lt;BR /&gt;You are right of course, thanks.&lt;BR /&gt;Best, Dimitri</description>
      <pubDate>Thu, 15 Jul 2021 11:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-white-test-in-dataset/m-p/754273#M237819</guid>
      <dc:creator>drdee</dc:creator>
      <dc:date>2021-07-15T11:17:33Z</dc:date>
    </item>
  </channel>
</rss>

