<?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: longitudinal data flagging a change in response for subjects that have many rows of data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/longitudinal-data-flagging-a-change-in-response-for-subjects/m-p/499274#M132827</link>
    <description>&lt;P&gt;Is this what you have, or what you want? Have you tried anything so far to solve this, if so please include that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm assuming you also want this for each SUBJECT? How do you want them identified, in a separate data set, in a new variable, what value should it be? What about the other records?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you post data as an image we can't work with that, but we can work with text. Otherwise, you'll get general approaches rather than code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, You can look at RETAIN to hold a value across rows, so you can set some flags once certain conditions are met.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The NOTSORTED option is great with BY GROUPS to identify groups that may not be in&amp;nbsp;a conventional sort&amp;nbsp;order but where the sequence is important.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235864"&gt;@kt_080517&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23583iEBD10D7208C4EBE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS.JPG" alt="SAS.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this dataset, and I want to flag the instance where the status changes. I want to see at the first time the status changes, what is the number of tests received.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Sep 2018 21:16:47 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-09-26T21:16:47Z</dc:date>
    <item>
      <title>longitudinal data flagging a change in response for subjects that have many rows of data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/longitudinal-data-flagging-a-change-in-response-for-subjects/m-p/499251#M132813</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23583iEBD10D7208C4EBE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS.JPG" alt="SAS.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this dataset, and I want to flag the instance where the status changes. I want to see at the first time the status changes, what is the number of tests received.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 20:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/longitudinal-data-flagging-a-change-in-response-for-subjects/m-p/499251#M132813</guid>
      <dc:creator>kt_080517</dc:creator>
      <dc:date>2018-09-26T20:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: longitudinal data flagging a change in response for subjects that have many rows of data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/longitudinal-data-flagging-a-change-in-response-for-subjects/m-p/499257#M132817</link>
      <description>&lt;P&gt;Please post data as text rather than pics for us to copy paste easily&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, post a sample of what you HAVE and what you WANT with your description&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 20:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/longitudinal-data-flagging-a-change-in-response-for-subjects/m-p/499257#M132817</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-09-26T20:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: longitudinal data flagging a change in response for subjects that have many rows of data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/longitudinal-data-flagging-a-change-in-response-for-subjects/m-p/499274#M132827</link>
      <description>&lt;P&gt;Is this what you have, or what you want? Have you tried anything so far to solve this, if so please include that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm assuming you also want this for each SUBJECT? How do you want them identified, in a separate data set, in a new variable, what value should it be? What about the other records?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you post data as an image we can't work with that, but we can work with text. Otherwise, you'll get general approaches rather than code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, You can look at RETAIN to hold a value across rows, so you can set some flags once certain conditions are met.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The NOTSORTED option is great with BY GROUPS to identify groups that may not be in&amp;nbsp;a conventional sort&amp;nbsp;order but where the sequence is important.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235864"&gt;@kt_080517&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23583iEBD10D7208C4EBE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS.JPG" alt="SAS.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this dataset, and I want to flag the instance where the status changes. I want to see at the first time the status changes, what is the number of tests received.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 21:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/longitudinal-data-flagging-a-change-in-response-for-subjects/m-p/499274#M132827</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-26T21:16:47Z</dc:date>
    </item>
  </channel>
</rss>

