<?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: Delete IDs with less than 3 observations in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544941#M16758</link>
    <description>&lt;P&gt;The data I have looks like this, the data lines I want to keep are the yellow ones&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 584px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28088i7D86167E4EFDAE07/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2019 16:40:00 GMT</pubDate>
    <dc:creator>YoLohse</dc:creator>
    <dc:date>2019-03-21T16:40:00Z</dc:date>
    <item>
      <title>Delete IDs with less than 3 observations</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544936#M16755</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a panel data set where each individual has a unique 'RunnerID'. I want to remove all the IDs that have less than 3 observations from my data set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you guys can help, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 16:34:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544936#M16755</guid>
      <dc:creator>YoLohse</dc:creator>
      <dc:date>2019-03-21T16:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete IDs with less than 3 observations</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544937#M16756</link>
      <description>&lt;P&gt;Please post samples data of what you HAVE and the expected OUTPUT(WANT) for your input. I mean a few records&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 16:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544937#M16756</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-21T16:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete IDs with less than 3 observations</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544938#M16757</link>
      <description>&lt;P&gt;Do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input RunnerID var;
datalines;
1 1
1 2
1 3
1 4
2 5
2 6
;

proc sql;
   create table want as
   select *
   from have
   group by RunnerID
   having count(RunnerID) ge 3;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Mar 2019 16:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544938#M16757</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-03-21T16:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delete IDs with less than 3 observations</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544941#M16758</link>
      <description>&lt;P&gt;The data I have looks like this, the data lines I want to keep are the yellow ones&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 584px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28088i7D86167E4EFDAE07/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 16:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544941#M16758</guid>
      <dc:creator>YoLohse</dc:creator>
      <dc:date>2019-03-21T16:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete IDs with less than 3 observations</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544942#M16759</link>
      <description>&lt;P&gt;Here is an example of one way&amp;nbsp;using SASHELP.CLASS data.&lt;/P&gt;
&lt;PRE&gt;Proc freq data=sashelp.class noprint;
   tables age /out=work.agecount (where=(count&amp;gt;3));
run;

proc sql;
   create table want as
   select b.* 
   from work.agecount as a
        left join
        sashelp.class as b
        on a.age=b.age
   ;
quit;&lt;/PRE&gt;
&lt;P&gt;"RunnerID would take the place of the variable Age in the above code. Obviously your data set would replace SASHELP.CLASS.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 16:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544942#M16759</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-21T16:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delete IDs with less than 3 observations</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544943#M16760</link>
      <description>Thanks man, just what i needed!</description>
      <pubDate>Thu, 21 Mar 2019 16:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Delete-IDs-with-less-than-3-observations/m-p/544943#M16760</guid>
      <dc:creator>YoLohse</dc:creator>
      <dc:date>2019-03-21T16:43:41Z</dc:date>
    </item>
  </channel>
</rss>

