<?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 to perform Date Look Back on Claims Data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-perform-Date-Look-Back-on-Claims-Data/m-p/844691#M36707</link>
    <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437068"&gt;@Dhuang0925&lt;/a&gt;,&lt;BR /&gt;No problem, I really like this question. Basically, I do not care about the order it which months are. If I sum the “1”s for all months and see that there are fewer of them than my index month from which I look backwards, then I know for sure a person discontinued enrollment. Hence, this statement:&lt;BR /&gt;If months_enrolled &amp;lt; index_month then continuous_enrol = 0;&lt;BR /&gt;Otherwise, I do not want the sum for all months_enrolled, because there could be some “1”s behind and some ahead of my observation point (index_month), and I would not know. &lt;BR /&gt;Instead what I do is sum enrols up until my month &lt;BR /&gt;Sum(enrol[1]:enrol[index_month])&lt;BR /&gt;Now if the sum is less than my month number, I would know there was a break and continuous_enrol = 0.&lt;BR /&gt;Maybe I can just do this last step and not care about total months. Please let me know if you have more questions.&lt;BR /&gt;Best wishes.</description>
    <pubDate>Wed, 16 Nov 2022 19:39:11 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2022-11-16T19:39:11Z</dc:date>
    <item>
      <title>How to perform Date Look Back on Claims Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-perform-Date-Look-Back-on-Claims-Data/m-p/844262#M36676</link>
      <description>&lt;P&gt;Hello New SAS User, I am currently working on project using claims information.&amp;nbsp; Currently I have two tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1.&lt;/P&gt;&lt;P&gt;ENROLID INDEX DATE&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11/02/2018&lt;/P&gt;&lt;P&gt;234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6/05/2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ENROLID YEAR ENROL1 ENROL2 ENROL3... ENROL12&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2017&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2018&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;ENROL1 = Janurary&lt;/P&gt;&lt;P&gt;ENROL2 = February etc.. up to ENROL12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to know whether ENROLID 123 is continous enrolled 1 year before the index date (11/02/2018).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you inadvance for any help you are able to provide!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 03:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-perform-Date-Look-Back-on-Claims-Data/m-p/844262#M36676</guid>
      <dc:creator>Dhuang0925</dc:creator>
      <dc:date>2022-11-15T03:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Date Look Back on Claims Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-perform-Date-Look-Back-on-Claims-Data/m-p/844268#M36679</link>
      <description>Continuous enrollment means enrols for all the months prior to index month are equal 1.&lt;BR /&gt;1) &lt;BR /&gt;Data tab1;&lt;BR /&gt;Set tab1;&lt;BR /&gt;Index_month = month(index_date);&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;2) &lt;BR /&gt;Proc sort data=tab1; by enrolid; run;&lt;BR /&gt;Proc sort data=tab2; by enrolid; run;&lt;BR /&gt;Data tab2;&lt;BR /&gt;Merge tab1 tab2;&lt;BR /&gt;By enrolid;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;3)&lt;BR /&gt;Data tab3;&lt;BR /&gt;Set tab3;&lt;BR /&gt;Array e enrol: ;&lt;BR /&gt;Months_enrolled = sum(of e[*]);&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;Data tab3;&lt;BR /&gt;Set tab3;&lt;BR /&gt;If months_enrolled &amp;lt; index_month then continuous_enrol = 0;&lt;BR /&gt;Else do;&lt;BR /&gt;Array e enrol:;&lt;BR /&gt;If sum( enrol[1]:enrol[index_month]) &amp;lt; index_month then continuous_enrol = 0;&lt;BR /&gt;Else continuous_enrol = 1;&lt;BR /&gt;End;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Nov 2022 04:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-perform-Date-Look-Back-on-Claims-Data/m-p/844268#M36679</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2022-11-15T04:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Date Look Back on Claims Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-perform-Date-Look-Back-on-Claims-Data/m-p/844277#M36680</link>
      <description>Hello Pink_poodle&lt;BR /&gt;Thank you so much for replying to my question. I am a very very new SAS user.&lt;BR /&gt;I am following your solution up to&lt;BR /&gt;"If months_enrolled &amp;lt; index_month then continuous_enrol = 0;&lt;BR /&gt;Else do;&lt;BR /&gt;Array e enrol:;&lt;BR /&gt;If sum( enrol[1]:enrol[index_month]) &amp;lt; index_month then continuous_enrol = 0;&lt;BR /&gt;Else continuous_enrol = 1;:"&lt;BR /&gt;&lt;BR /&gt;Do you mind explain a bit further what these steps achieve?</description>
      <pubDate>Tue, 15 Nov 2022 04:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-perform-Date-Look-Back-on-Claims-Data/m-p/844277#M36680</guid>
      <dc:creator>Dhuang0925</dc:creator>
      <dc:date>2022-11-15T04:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Date Look Back on Claims Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-perform-Date-Look-Back-on-Claims-Data/m-p/844691#M36707</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437068"&gt;@Dhuang0925&lt;/a&gt;,&lt;BR /&gt;No problem, I really like this question. Basically, I do not care about the order it which months are. If I sum the “1”s for all months and see that there are fewer of them than my index month from which I look backwards, then I know for sure a person discontinued enrollment. Hence, this statement:&lt;BR /&gt;If months_enrolled &amp;lt; index_month then continuous_enrol = 0;&lt;BR /&gt;Otherwise, I do not want the sum for all months_enrolled, because there could be some “1”s behind and some ahead of my observation point (index_month), and I would not know. &lt;BR /&gt;Instead what I do is sum enrols up until my month &lt;BR /&gt;Sum(enrol[1]:enrol[index_month])&lt;BR /&gt;Now if the sum is less than my month number, I would know there was a break and continuous_enrol = 0.&lt;BR /&gt;Maybe I can just do this last step and not care about total months. Please let me know if you have more questions.&lt;BR /&gt;Best wishes.</description>
      <pubDate>Wed, 16 Nov 2022 19:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-perform-Date-Look-Back-on-Claims-Data/m-p/844691#M36707</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2022-11-16T19:39:11Z</dc:date>
    </item>
  </channel>
</rss>

