<?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: 60 days overlap in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/days-overlap/m-p/284791#M58117</link>
    <description>&lt;P&gt;As far as I can see the only difference is 60 versus 30 days and you should be able to adjust the code for that. Have you tried replacing 30 with 60?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/frequency-of-multiple-observations-hapenning-at-the-same-time/m-p/265526" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/frequency-of-multiple-observations-hapenning-at-the-same-time/m-p/265526&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm also assuming mono means single usage not the disease?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the last 4 qs use either a double proc freq or proc SQl with count distinct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc freq data=have;&lt;/P&gt;
&lt;P&gt;table id*drug/out = drugs_per_id;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=drugs_per_id;&lt;/P&gt;
&lt;P&gt;table id/ out=distinct_coumt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then transpose this table to generate your output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Though it does appear this one was answered as well here :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/assessing-dual-drug-use/m-p/265554#M57898" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/assessing-dual-drug-use/m-p/265554#M57898&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2016 10:15:16 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-07-15T10:15:16Z</dc:date>
    <item>
      <title>days overlap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/days-overlap/m-p/284702#M58094</link>
      <description>&lt;PRE class="snippet-code-html lang-html prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;Patient_id  Medication_name Dispensing_Date  days_supply
1  a             1/1/2003   30
1  a             4/4/2004   60
1  b             3/4/2004   90
2  a             1/1/2003  30
2  a             4/4/2004   60
2  b             3/4/2004   90
2  c             3/15/2004  90
2  a             1/1/2002   60
2  d             1/1/2002   60
3 a              1/1/2005   30
3 b              2/2/2010    30
4  b             2/3/2009    60
4 g              4/4/2005    60
4  c             1/1/2006    60
4 e               1/1/2006   60
4  a              1/1/2004   90
4  b              1/28/2004  60
4  t               1/28/2004  60
4 o               1/15/2004  90&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Jul 2016 03:40:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/days-overlap/m-p/284702#M58094</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-07-16T03:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: 60 days overlap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/days-overlap/m-p/284735#M58111</link>
      <description>&lt;P&gt;Didn't you ask this question a while back?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 02:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/days-overlap/m-p/284735#M58111</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-15T02:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: 60 days overlap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/days-overlap/m-p/284755#M58112</link>
      <description>&lt;P&gt;Hi Reeza, the other question has different assumptions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 07:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/days-overlap/m-p/284755#M58112</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-07-15T07:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: 60 days overlap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/days-overlap/m-p/284791#M58117</link>
      <description>&lt;P&gt;As far as I can see the only difference is 60 versus 30 days and you should be able to adjust the code for that. Have you tried replacing 30 with 60?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/frequency-of-multiple-observations-hapenning-at-the-same-time/m-p/265526" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/frequency-of-multiple-observations-hapenning-at-the-same-time/m-p/265526&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm also assuming mono means single usage not the disease?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the last 4 qs use either a double proc freq or proc SQl with count distinct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc freq data=have;&lt;/P&gt;
&lt;P&gt;table id*drug/out = drugs_per_id;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=drugs_per_id;&lt;/P&gt;
&lt;P&gt;table id/ out=distinct_coumt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then transpose this table to generate your output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Though it does appear this one was answered as well here :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/assessing-dual-drug-use/m-p/265554#M57898" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/assessing-dual-drug-use/m-p/265554#M57898&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 10:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/days-overlap/m-p/284791#M58117</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-15T10:15:16Z</dc:date>
    </item>
  </channel>
</rss>

