<?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 do I create a variable that contains the the highest number when there are stratums? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-variable-that-contains-the-the-highest-number/m-p/797660#M313605</link>
    <description>&lt;P&gt;Of course SAS can do this.&amp;nbsp; Easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the answer depends on what is in your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have one observation per patient, with information for all 6 stratum values on the same observations?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have up to 6 observations per patient with STRATUM taking on a value from 1 to 6?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And given the structure of your data now, what do you envision as the final structure once the maximum is calculated?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 20:52:48 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2022-02-21T20:52:48Z</dc:date>
    <item>
      <title>How do I create a variable that contains the the highest number when there are stratums?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-variable-that-contains-the-the-highest-number/m-p/797656#M313602</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a time variable that has the maximum follow up time for each patient. Each patient has 6 different stratums (stratum 1, 2, 3, 4, 5, 6). Within each stratum are different times when a different event of interest occurs. Stratum 6 has the longest follow up time. Other than deleting stratums 1-5 and just using stratum 6, is there a way program so that it will select for the highest number for each stratum? Like function like Max or etc?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all of your help&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 20:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-variable-that-contains-the-the-highest-number/m-p/797656#M313602</guid>
      <dc:creator>Costco</dc:creator>
      <dc:date>2022-02-21T20:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a variable that contains the the highest number when there are stratums?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-variable-that-contains-the-the-highest-number/m-p/797660#M313605</link>
      <description>&lt;P&gt;Of course SAS can do this.&amp;nbsp; Easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the answer depends on what is in your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have one observation per patient, with information for all 6 stratum values on the same observations?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have up to 6 observations per patient with STRATUM taking on a value from 1 to 6?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And given the structure of your data now, what do you envision as the final structure once the maximum is calculated?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 20:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-variable-that-contains-the-the-highest-number/m-p/797660#M313605</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-02-21T20:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a variable that contains the the highest number when there are stratums?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-variable-that-contains-the-the-highest-number/m-p/797666#M313607</link>
      <description>&lt;P&gt;Example data in the form of a data step.&lt;/P&gt;
&lt;P&gt;If you expect a data set as a result, then the result for the example data in the form of a data step.&lt;/P&gt;
&lt;P&gt;Cases of different types should be represented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data step is important because it provides actual details about variables and content that otherwise we get to spend time having to ask for each.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the &amp;lt;/&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 22:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-variable-that-contains-the-the-highest-number/m-p/797666#M313607</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-21T22:17:19Z</dc:date>
    </item>
  </channel>
</rss>

