<?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: Identifying Outlier Value in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/563405#M10880</link>
    <description>&lt;P&gt;Thank you for the note! &amp;nbsp;We would like to ignore the observations for which we have no value.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2019 22:31:54 GMT</pubDate>
    <dc:creator>anissak1</dc:creator>
    <dc:date>2019-06-03T22:31:54Z</dc:date>
    <item>
      <title>Identifying Outlier Value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/563153#M10857</link>
      <description>&lt;P&gt;We are analyzing data in the following format. &amp;nbsp; Our question is,&lt;/P&gt;&lt;P&gt;how can we identify IDs where the difference between any 2 sequential values for "Level" is more than 2?&lt;/P&gt;&lt;P&gt;We have looked through SAS resources and, as relatively new programmers, can't figure this out.&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;ID &amp;nbsp;Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Level &amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp;01/01/2000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp;01/02/2000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp;01/05/2000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp;01/05/2010&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp;01/06/2010 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp;02/12/2005 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&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>Sun, 02 Jun 2019 22:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/563153#M10857</guid>
      <dc:creator>anissak1</dc:creator>
      <dc:date>2019-06-02T22:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Outlier Value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/563156#M10858</link>
      <description>&lt;P&gt;How do you want to deal with cases where you're missing values between sequential values as in your data? Show your expected output please.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, you likely want the DIF function but it's a bit tricky to use if you're not familiar with SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n10t6w4op574ttn11yk68dottp7f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n10t6w4op574ttn11yk68dottp7f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/264621"&gt;@anissak1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;We are analyzing data in the following format. &amp;nbsp; Our question is,&lt;/P&gt;
&lt;P&gt;how can we identify IDs where the difference between any 2 sequential values for "Level" is more than 2?&lt;/P&gt;
&lt;P&gt;We have looked through SAS resources and, as relatively new programmers, can't figure this out.&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;ID &amp;nbsp;Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Level &amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp;01/01/2000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp;01/02/2000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp;01/05/2000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp; &amp;nbsp;01/05/2010&lt;/P&gt;
&lt;P&gt;2 &amp;nbsp; &amp;nbsp;01/06/2010 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;
&lt;P&gt;2 &amp;nbsp; &amp;nbsp;02/12/2005 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&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;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 23:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/563156#M10858</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-02T23:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Outlier Value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/563405#M10880</link>
      <description>&lt;P&gt;Thank you for the note! &amp;nbsp;We would like to ignore the observations for which we have no value.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 22:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/563405#M10880</guid>
      <dc:creator>anissak1</dc:creator>
      <dc:date>2019-06-03T22:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Outlier Value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/563451#M10884</link>
      <description>Did you mean greater than or equal to 2?  That's an easy tweak to the logic if necessary.&lt;BR /&gt;&lt;BR /&gt;Here's a way to identify all observations that increased by 2 or more:&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;by id;&lt;BR /&gt;where level &amp;gt; .;&lt;BR /&gt;if dif(level) &amp;gt; 1;&lt;BR /&gt;if first.id = 0 ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;So there's still some work to do, but this gets you through the hard part.  Make me proud and take it home the rest of the way.</description>
      <pubDate>Tue, 04 Jun 2019 06:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/563451#M10884</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-06-04T06:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Outlier Value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/564130#M10987</link>
      <description>Thank you!! I guess you are a master for a reason. &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;. Much appreciation. We are close to crossing the finish line&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jun 2019 14:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Identifying-Outlier-Value/m-p/564130#M10987</guid>
      <dc:creator>anissak1</dc:creator>
      <dc:date>2019-06-06T14:37:58Z</dc:date>
    </item>
  </channel>
</rss>

