<?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: Predicting time intervals based off enrollment date in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Predicting-time-intervals-based-off-enrollment-date/m-p/869447#M38442</link>
    <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data&amp;nbsp; are ideally in the form of a data step but clearly described simple text posted into a text box opened with the &amp;lt;/&amp;gt; icon above the message window may work. A worked example is helpful as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Text or a link to a description of the calculation are helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: processes described in spreadsheets are generally not&amp;nbsp; implemented the same way in SAS.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 17:51:21 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-04-12T17:51:21Z</dc:date>
    <item>
      <title>Predicting time intervals based off enrollment date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Predicting-time-intervals-based-off-enrollment-date/m-p/869440#M38440</link>
      <description>&lt;P&gt;Hi, thanks for reading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to predict upcoming time periods based off enrollment dates. The electronic data capture system I use only gives me a list up to "Due in 90 days" but I want to make it easier and get upcoming time periods until the end of 2023. This would be for multiple subjects throughout the year. I already have a code to match the subject ID and MRN and want to expand it to predict upcoming visit windows and due dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am thinking of using the Visit Window Date Calculations but want to automate it with SAS, calculation is in the file below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there are a couple ways to do this, like INTNX function, but am not sure how to translate it here. Is there a better way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Gloria&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 16:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Predicting-time-intervals-based-off-enrollment-date/m-p/869440#M38440</guid>
      <dc:creator>grhyne</dc:creator>
      <dc:date>2023-04-12T16:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting time intervals based off enrollment date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Predicting-time-intervals-based-off-enrollment-date/m-p/869447#M38442</link>
      <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data&amp;nbsp; are ideally in the form of a data step but clearly described simple text posted into a text box opened with the &amp;lt;/&amp;gt; icon above the message window may work. A worked example is helpful as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Text or a link to a description of the calculation are helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: processes described in spreadsheets are generally not&amp;nbsp; implemented the same way in SAS.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 17:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Predicting-time-intervals-based-off-enrollment-date/m-p/869447#M38442</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-04-12T17:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting time intervals based off enrollment date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Predicting-time-intervals-based-off-enrollment-date/m-p/869449#M38443</link>
      <description>&lt;P&gt;Sorry! Didn't know that about excel files, here is an example of the date calculations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consent date: 3/21/18&lt;/P&gt;&lt;P&gt;Visit 2: Year 1 Follow up&lt;/P&gt;&lt;P&gt;Visit Open Date Calculation: 180 after consent date or 9/17/2018&lt;/P&gt;&lt;P&gt;Visit Window Close Date Calculation: 365 Days (1 Yr) + 180 Days = 545 Days after Consent Date of 9/17/2019&lt;/P&gt;&lt;P&gt;Form Due Date: 12/16/2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 18:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Predicting-time-intervals-based-off-enrollment-date/m-p/869449#M38443</guid>
      <dc:creator>grhyne</dc:creator>
      <dc:date>2023-04-12T18:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting time intervals based off enrollment date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Predicting-time-intervals-based-off-enrollment-date/m-p/869455#M38444</link>
      <description>&lt;P&gt;So if you have this dataset:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  consent_date='21MAR2018'd;
  format consert_date date9.;
  do year=1 to 5;
     output;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can create a new dataset with your two new variables like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  open_date = intnx('year',consent_date,year-1,'same')+180;
  close_date = intnx('year',consent_date,year,'same')+180;
  format open_date close_date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result&lt;/P&gt;
&lt;DIV id="tinyMceEditorTom_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1681327121517.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82650i2ADF3E50747DD455/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1681327121517.png" alt="Tom_0-1681327121517.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorTom_2" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 19:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Predicting-time-intervals-based-off-enrollment-date/m-p/869455#M38444</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-12T19:18:49Z</dc:date>
    </item>
  </channel>
</rss>

