<?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: Remove the Cook's Distance in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Remove-the-Cook-s-Distance/m-p/620102#M19491</link>
    <description>&lt;P&gt;What about something along these lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Output new_class where cookd&amp;lt;0.2;
proc reg data = sashelp.class;
  model height = age;
  output out = new_class(where=(cookd&amp;lt;0.2)) cookd = cookd;
run;
quit;

*check results of reg on new_class;
proc reg data = new_class;
  model height = age;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Jan 2020 00:39:03 GMT</pubDate>
    <dc:creator>unison</dc:creator>
    <dc:date>2020-01-27T00:39:03Z</dc:date>
    <item>
      <title>Remove the Cook's Distance</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-the-Cook-s-Distance/m-p/620101#M19490</link>
      <description>&lt;PRE&gt;ODS GRAPHICS ON;
PROC REG DATA=Gas PLOTS(UNPACK);
MODEL lnox = E E2 / CLB; OUTPUT OUT=resid R=resid P=pred;
WHERE Nox &amp;gt; 0.9; RUN; QUIT;
PROC LOESS DATA=resid; MODEL resid = pred / SMOOTH=0.8; RUN; ODS GRAPHICS OFF;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-01-27 at 1.24.49 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35627i9E11519826D2F4F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-01-27 at 1.24.49 PM.png" alt="Screen Shot 2020-01-27 at 1.24.49 PM.png" /&gt;&lt;/span&gt;&lt;/PRE&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;above it is the code for quadratic model. For Cook's Distance it still has some outlier which is above 0.2, 0,3 and 0.4. Could you tell me how can I remove these outlier please?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 00:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-the-Cook-s-Distance/m-p/620101#M19490</guid>
      <dc:creator>kngu022</dc:creator>
      <dc:date>2020-01-27T00:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove the Cook's Distance</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-the-Cook-s-Distance/m-p/620102#M19491</link>
      <description>&lt;P&gt;What about something along these lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Output new_class where cookd&amp;lt;0.2;
proc reg data = sashelp.class;
  model height = age;
  output out = new_class(where=(cookd&amp;lt;0.2)) cookd = cookd;
run;
quit;

*check results of reg on new_class;
proc reg data = new_class;
  model height = age;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jan 2020 00:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-the-Cook-s-Distance/m-p/620102#M19491</guid>
      <dc:creator>unison</dc:creator>
      <dc:date>2020-01-27T00:39:03Z</dc:date>
    </item>
  </channel>
</rss>

