<?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 do i remove duplicates from my outcomes? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-duplicates-from-my-outcomes/m-p/517212#M139781</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not an IF condition to only keep the records you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
if outcomes in (1,2,3);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Nov 2018 19:53:24 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2018-11-29T19:53:24Z</dc:date>
    <item>
      <title>How do i remove duplicates from my outcomes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-duplicates-from-my-outcomes/m-p/517209#M139780</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I have a SAS file called Prg_grp. One of the variables in this file is called "outcomes" coded as 0,1,2 or 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 in the outcome denotes = asthin&lt;/P&gt;&lt;P&gt;2 =&amp;nbsp; Coap&lt;/P&gt;&lt;P&gt;3 = Soca&lt;/P&gt;&lt;P&gt;However any of my outcome that is not either of the above is denoted = 0.&lt;/P&gt;&lt;P&gt;I have 11, 829,526 of observations but my total number based on ID without duplications is 85,000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My file has other variables such as ID, medic, medic_date.&lt;/P&gt;&lt;P&gt;I want to remove duplicates so that only an ID has either 1, 2, or 3 and the total number of rows corresponding to my ID is exactly 85,000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 19:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-duplicates-from-my-outcomes/m-p/517209#M139780</guid>
      <dc:creator>Mystik</dc:creator>
      <dc:date>2018-11-29T19:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do i remove duplicates from my outcomes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-duplicates-from-my-outcomes/m-p/517212#M139781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not an IF condition to only keep the records you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
if outcomes in (1,2,3);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 19:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-duplicates-from-my-outcomes/m-p/517212#M139781</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-11-29T19:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do i remove duplicates from my outcomes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-duplicates-from-my-outcomes/m-p/517230#M139792</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;however, i will still get duplicates because, those codes in medic variable which are not 1, 2, 3 will still be available in medic variable. So those observations will still be present in medic.&lt;/P&gt;&lt;P&gt;Running a proc freq on outcome variable will yield those values not coded 1,2 or 3 as missing.&lt;/P&gt;&lt;P&gt;Also the outcome variables of 1, 2 or 3 are based on a single code in medic or combination of codes.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 20:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-duplicates-from-my-outcomes/m-p/517230#M139792</guid>
      <dc:creator>Mystik</dc:creator>
      <dc:date>2018-11-29T20:42:41Z</dc:date>
    </item>
  </channel>
</rss>

