<?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: Is there a way to extract overlapping observations from a dataset? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542453#M74167</link>
    <description>&lt;P&gt;Please explain further. Why are those two records the only output? What is the logic that keeps those two lines and not the others?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 15:36:34 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-03-12T15:36:34Z</dc:date>
    <item>
      <title>Is there a way to extract overlapping observations from a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542451#M74166</link>
      <description>I need to find overlapping advevent value for the same patid and date.&lt;BR /&gt;This is the dataset i have:&lt;BR /&gt;Patid advevent date&lt;BR /&gt;1 vomiting 01jan09&lt;BR /&gt;1 vomiting 01jan09&lt;BR /&gt;1 vomiting 01jan09&lt;BR /&gt;2 delirium 06jan09&lt;BR /&gt;2 nausea 06jan09&lt;BR /&gt;2 delirium 06jan09&lt;BR /&gt;2 delirium 06jan09&lt;BR /&gt;&lt;BR /&gt;My outpout should be&lt;BR /&gt;&lt;BR /&gt;2 delirium 06jan09&lt;BR /&gt;2 nausea 06jan09</description>
      <pubDate>Tue, 12 Mar 2019 15:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542451#M74166</guid>
      <dc:creator>sneha_dodle</dc:creator>
      <dc:date>2019-03-12T15:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract overlapping observations from a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542453#M74167</link>
      <description>&lt;P&gt;Please explain further. Why are those two records the only output? What is the logic that keeps those two lines and not the others?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 15:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542453#M74167</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-12T15:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract overlapping observations from a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542465#M74168</link>
      <description>My task to create a dataset that contains observations with different&lt;BR /&gt;advevent value for the same patid and visitdate.&lt;BR /&gt;Im creating an outliers dataset. A single patient cannot have two&lt;BR /&gt;different adverse events at the same visit date.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Mar 2019 15:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542465#M74168</guid>
      <dc:creator>sneha_dodle</dc:creator>
      <dc:date>2019-03-12T15:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract overlapping observations from a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542467#M74169</link>
      <description>Ive given only a sample of my dataset. i have patid values that go upto 244 and 4 to 6 advevent values for each patid</description>
      <pubDate>Tue, 12 Mar 2019 15:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542467#M74169</guid>
      <dc:creator>sneha_dodle</dc:creator>
      <dc:date>2019-03-12T15:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract overlapping observations from a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542479#M74170</link>
      <description>&lt;P&gt;I would recommend you go back and check on the task you were given.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is certainly possible for a patient to have more than one adverse event on the same day.&amp;nbsp; It would be unusual to be allowed to report only one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is unusual for a patient to report the same adverse event multiple times on the same day.&amp;nbsp; If a patient reports 3 headaches on the same day, they would usually be treated as a single headache.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542479#M74170</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-12T16:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract overlapping observations from a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542501#M74172</link>
      <description>&lt;P&gt;This does not address my earlier question: "&lt;SPAN&gt;Why are those two records the only output?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;What is the logic that keeps those two lines and not the others?"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Specifically, why are there no output records for Patid 1?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 17:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542501#M74172</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-12T17:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract overlapping observations from a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542525#M74173</link>
      <description>&lt;P&gt;Without entering, is the query logic or not, I assume that next code may give you the requested result:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have out=temp nodupkey;
  by patid date advevent;
run;

data want;
set temp;
   by patid date advevent;;
        if not (first.date and last.date);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Mar 2019 17:49:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542525#M74173</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-03-12T17:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to extract overlapping observations from a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542720#M74185</link>
      <description>&lt;P&gt;Here is an SQL solution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table want as
  select distinct Patid, advevent,date from have
  group by Patid, date
  having count(distinct advevent)&amp;gt;1;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Mar 2019 10:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-extract-overlapping-observations-from-a/m-p/542720#M74185</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2019-03-13T10:59:34Z</dc:date>
    </item>
  </channel>
</rss>

