<?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: How to 'print' the remaining data after remove the outliers? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386458#M20108</link>
    <description>&lt;P&gt;Got it. Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 02:44:27 GMT</pubDate>
    <dc:creator>NURAO</dc:creator>
    <dc:date>2017-08-09T02:44:27Z</dc:date>
    <item>
      <title>How to 'print' the remaining data after remove the outliers?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386060#M20071</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I 'print' the data that has been removed the outliers. Specially when it is univariate data.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 15:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386060#M20071</guid>
      <dc:creator>NURAO</dc:creator>
      <dc:date>2017-08-07T15:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'print' the remaining data after remove the outliers?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386078#M20073</link>
      <description>&lt;P&gt;You might want to show the code for what you are currently doing and even some example data so we can see some of your outliers. Example data really only would need one variable with outliers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Default output for proc univariate shows the largest and smallest values by default. Do you need more than those?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likely the approach is going to involve either manually writing a where clause for proc print or code to extract some key values to use as limits.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 16:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386078#M20073</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-07T16:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'print' the remaining data after remove the outliers?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386187#M20079</link>
      <description>&lt;P&gt;PROC IML;&lt;BR /&gt;RESET NONAME;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A={2,2,3,3,3,3,3,3,3,4,4,4,&lt;BR /&gt;4,4,5,5,5,6,6,6,7,7,7,8,&lt;BR /&gt;8,9,10,14,14,15,20,21,23};&lt;BR /&gt;mini=A[&amp;gt;&amp;lt;,];&lt;BR /&gt;Q=quartile (A);&lt;BR /&gt;Q3=Q[4,1];&lt;BR /&gt;Q1=Q[2,1];&lt;BR /&gt;IQR=Q3-Q1;&lt;BR /&gt;L2=Q1-(1.5*IQR);&lt;BR /&gt;U2=Q3+(1.5*IQR);&lt;BR /&gt;PRINT "L2=" L2,&lt;BR /&gt;"U2=" U2;&lt;BR /&gt;maxA=max (A);&lt;BR /&gt;minA=min (A);&lt;BR /&gt;print "mini=" minA,&lt;BR /&gt;"max=" maxA;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here, L2 and U2 are the fences to detect outliers. Based on data A, 20,21 and 23 are the outliers. So my intention is, i want to "print" the data set A by excluded those outliers.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 08:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386187#M20079</guid>
      <dc:creator>NURAO</dc:creator>
      <dc:date>2017-08-08T08:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'print' the remaining data after remove the outliers?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386260#M20084</link>
      <description>&lt;P&gt;You should just have to use the LOC function to subset the matrix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;newa=a[loc(a&amp;gt;l2 &amp;amp; a&amp;lt;u2)];&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 13:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386260#M20084</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2017-08-08T13:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'print' the remaining data after remove the outliers?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386266#M20085</link>
      <description>&lt;P&gt;You really should post it at IML forum, since your code is IML code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IML;
RESET NONAME;
 
A={2,2,3,3,3,3,3,3,3,4,4,4,
4,4,5,5,5,6,6,6,7,7,7,8,
8,9,10,14,14,15,20,21,23};
mini=A[&amp;gt;&amp;lt;,];
Q=quartile (A);
Q3=Q[4,1];
Q1=Q[2,1];
IQR=Q3-Q1;
L2=Q1-(1.5*IQR);
U2=Q3+(1.5*IQR);
PRINT "L2=" L2,
"U2=" U2;
maxA=max (A);
minA=min (A);
print "mini=" minA,
"max=" maxA;



left=A[loc(L2&amp;lt;a &amp;amp; a&amp;lt;U2)];
print "exclude outliers: " left;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2017 14:01:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386266#M20085</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-08-08T14:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'print' the remaining data after remove the outliers?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386457#M20107</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 02:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386457#M20107</guid>
      <dc:creator>NURAO</dc:creator>
      <dc:date>2017-08-09T02:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to 'print' the remaining data after remove the outliers?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386458#M20108</link>
      <description>&lt;P&gt;Got it. Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 02:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-print-the-remaining-data-after-remove-the-outliers/m-p/386458#M20108</guid>
      <dc:creator>NURAO</dc:creator>
      <dc:date>2017-08-09T02:44:27Z</dc:date>
    </item>
  </channel>
</rss>

