<?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: Need to create a time varying measure within SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-to-create-a-time-varying-measure-within-SAS/m-p/709088#M217961</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 set have;
 array t ricf1-ricf10;
 _n_=whichn(0,of t(*))-1;
 yti=ifn(sign(_n_)=-1,dim(t),_n_);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 02 Jan 2021 19:17:02 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2021-01-02T19:17:02Z</dc:date>
    <item>
      <title>Need to create a time varying measure within SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-create-a-time-varying-measure-within-SAS/m-p/709086#M217960</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jadenmcbroom_0-1609613631150.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53178iADB878B9E427EED0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jadenmcbroom_0-1609613631150.png" alt="jadenmcbroom_0-1609613631150.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need to create a new variable based on care interruption. RICF represents how many years from the event of interest. So ricf1=1 year since event, ricf2=2 years since event, ricf3=3 years since event, etc;&lt;/P&gt;&lt;P&gt;I want to create a variable that states how many years till the first interruption (YTI) which are circled in red. So for example&lt;/P&gt;&lt;P&gt;obs&amp;nbsp; &amp;nbsp; YTI&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;&lt;P&gt;6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&lt;/P&gt;&lt;P&gt;10&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 18:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-create-a-time-varying-measure-within-SAS/m-p/709086#M217960</guid>
      <dc:creator>jadenmcbroom</dc:creator>
      <dc:date>2021-01-02T18:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create a time varying measure within SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-create-a-time-varying-measure-within-SAS/m-p/709088#M217961</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 set have;
 array t ricf1-ricf10;
 _n_=whichn(0,of t(*))-1;
 yti=ifn(sign(_n_)=-1,dim(t),_n_);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Jan 2021 19:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-create-a-time-varying-measure-within-SAS/m-p/709088#M217961</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2021-01-02T19:17:02Z</dc:date>
    </item>
  </channel>
</rss>

