<?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 subset the longitudinal data into two separate datasets? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277799#M58780</link>
    <description>&lt;P&gt;"first" / "last" refer to a subgroup which means ordering. Your code does not browse the data set in an ordered manner (you should have a "by ... " clause in it.&lt;/P&gt;&lt;P&gt;I'd&amp;nbsp;suggest you should read a little bit the basics to understand the mechanisms behind:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001302699.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001302699.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2016 07:54:45 GMT</pubDate>
    <dc:creator>zzone</dc:creator>
    <dc:date>2016-06-16T07:54:45Z</dc:date>
    <item>
      <title>How to subset the longitudinal data into two separate datasets?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277446#M58758</link>
      <description>&lt;P&gt;I have a longituidnal data (Called as SBP &amp;amp; DBP which are contineous variables)- which is collected on different dates and the date variable looks like 10SEP2010. I have sample ID for each patient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to classify first measurement of SBP, DBP of each observation into one dataset and last measurement of SBP, DBP of each observation into another dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I do this?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 04:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277446#M58758</guid>
      <dc:creator>mantubiradar19</dc:creator>
      <dc:date>2016-06-15T04:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to subset the longitudinal data into two separate datasets?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277455#M58759</link>
      <description>&lt;P&gt;Browse source dataset by patient_ID and sampling_date. Output first record of a group to one dataset and the last to another. something like code below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; destination_dataset1 destination_dataset2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp; set&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; source_dataset;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp; by&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; patient_id &lt;FONT face="Courier New"&gt;sampling_date; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp; if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; first.patient_id &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; destination_dataset1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp; if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; last.patient_id&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; destination_dataset2;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 05:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277455#M58759</guid>
      <dc:creator>zzone</dc:creator>
      <dc:date>2016-06-15T05:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to subset the longitudinal data into two separate datasets?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277457#M58760</link>
      <description>Thank you very much Zzone! Let me try this!</description>
      <pubDate>Wed, 15 Jun 2016 05:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277457#M58760</guid>
      <dc:creator>mantubiradar19</dc:creator>
      <dc:date>2016-06-15T05:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to subset the longitudinal data into two separate datasets?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277786#M58779</link>
      <description>&lt;P&gt;I'm trying to computete the difference between first and last observations. Can someone tell me why I have the following note?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12662i554630DD34A09124/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.JPG" title="Capture.JPG" /&gt;</description>
      <pubDate>Thu, 16 Jun 2016 06:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277786#M58779</guid>
      <dc:creator>mantubiradar19</dc:creator>
      <dc:date>2016-06-16T06:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to subset the longitudinal data into two separate datasets?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277799#M58780</link>
      <description>&lt;P&gt;"first" / "last" refer to a subgroup which means ordering. Your code does not browse the data set in an ordered manner (you should have a "by ... " clause in it.&lt;/P&gt;&lt;P&gt;I'd&amp;nbsp;suggest you should read a little bit the basics to understand the mechanisms behind:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001302699.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001302699.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 07:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277799#M58780</guid>
      <dc:creator>zzone</dc:creator>
      <dc:date>2016-06-16T07:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to subset the longitudinal data into two separate datasets?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277805#M58781</link>
      <description>Thanks for the reference!</description>
      <pubDate>Thu, 16 Jun 2016 08:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-subset-the-longitudinal-data-into-two-separate-datasets/m-p/277805#M58781</guid>
      <dc:creator>mantubiradar19</dc:creator>
      <dc:date>2016-06-16T08:32:28Z</dc:date>
    </item>
  </channel>
</rss>

