<?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 Is there a way to get Cook's Distance on the output tatistics? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-get-Cook-s-Distance-on-the-output-tatistics/m-p/829133#M327565</link>
    <description>&lt;P&gt;I was wondering if there is a way to get&amp;nbsp;Cook's Distance values on the &lt;SPAN&gt;REG Procedure&amp;nbsp;&lt;/SPAN&gt;output statistics table when doing regression? Or a way to get the Cook's D values tabulated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joanna&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 00:55:16 GMT</pubDate>
    <dc:creator>Joa14</dc:creator>
    <dc:date>2022-08-18T00:55:16Z</dc:date>
    <item>
      <title>Is there a way to get Cook's Distance on the output tatistics?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-get-Cook-s-Distance-on-the-output-tatistics/m-p/829133#M327565</link>
      <description>&lt;P&gt;I was wondering if there is a way to get&amp;nbsp;Cook's Distance values on the &lt;SPAN&gt;REG Procedure&amp;nbsp;&lt;/SPAN&gt;output statistics table when doing regression? Or a way to get the Cook's D values tabulated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joanna&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 00:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-get-Cook-s-Distance-on-the-output-tatistics/m-p/829133#M327565</guid>
      <dc:creator>Joa14</dc:creator>
      <dc:date>2022-08-18T00:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get Cook's Distance on the output tatistics?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-get-Cook-s-Distance-on-the-output-tatistics/m-p/829139#M327567</link>
      <description>&lt;P&gt;An ODS OUTPUT statement can direct the data used for plots into a data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generic syntax is Ods output plotname=yourdatasetname;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possible plot names from Proc reg are CooksDChart&amp;nbsp; CooksDPlot StudResCooksDChart (studentized residuals) depending on requested plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 02:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-get-Cook-s-Distance-on-the-output-tatistics/m-p/829139#M327567</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-08-18T02:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get Cook's Distance on the output tatistics?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-get-Cook-s-Distance-on-the-output-tatistics/m-p/829164#M327577</link>
      <description>&lt;P&gt;Read about &lt;A href="https://blogs.sas.com/content/iml/2021/03/29/influential-obs-regression.html" target="_self"&gt;two ways to obtain the Cook's D statistics for each observation&lt;/A&gt; in a regression model by using PROC REG:&lt;/P&gt;
&lt;P&gt;1. On the OUTPUT statement, use the COOKD= option&lt;/P&gt;
&lt;P&gt;2. Create the Cook's D plot (PLOTS=(CooksD)) and use ODS output to write the data to a data set:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="sas"&gt;ods &lt;SPAN&gt;output&lt;/SPAN&gt; CooksDPlot=CookOut;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 09:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-get-Cook-s-Distance-on-the-output-tatistics/m-p/829164#M327577</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-08-18T09:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get Cook's Distance on the output tatistics?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-get-Cook-s-Distance-on-the-output-tatistics/m-p/829177#M327582</link>
      <description>&lt;PRE&gt;If you pay some time to flip the doc of PROC REG, you would find the answer.


proc reg data=sashelp.class;
model weight=height / influence;
output out=want cookd=cookd;
quit;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Aug 2022 12:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-get-Cook-s-Distance-on-the-output-tatistics/m-p/829177#M327582</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-18T12:19:18Z</dc:date>
    </item>
  </channel>
</rss>

