<?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: Help with maximum and array in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412598#M100906</link>
    <description>Thank you for your hint, but could you please expand a little bit?&lt;BR /&gt;&lt;BR /&gt;I'm very new to sas and we have yet to learn WHICHN() in my class.&lt;BR /&gt;</description>
    <pubDate>Sat, 11 Nov 2017 19:40:18 GMT</pubDate>
    <dc:creator>mackenzies3</dc:creator>
    <dc:date>2017-11-11T19:40:18Z</dc:date>
    <item>
      <title>Help with maximum and array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412594#M100903</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a project for a class that asks me to do 3 things&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use PROC TRANSPOSE to restructure the converted SAS data set as described in the Word document&lt;/LI&gt;&lt;LI&gt;Using ARRAY statement&amp;nbsp;to compute the Cmax and Tmax&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;For each patient, compute the following: MEAN of the concentration values and MINIMUM of the concentration values.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have completed all of the tasks correctly, except computing&amp;nbsp;&lt;SPAN&gt;T&lt;/SPAN&gt;max&lt;SPAN&gt;&amp;nbsp;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For this part of my project I have:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; temp3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set project2_transposed;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array conc[&lt;STRONG&gt;13&lt;/STRONG&gt;] C1-C13;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cmax= max(of conc{*});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array times[&lt;STRONG&gt;13&lt;/STRONG&gt;] T1-T13;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tmax= max(of times(of Cmax);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by subject;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;print&lt;/STRONG&gt; data= temp3;&lt;/P&gt;&lt;P&gt;title "Part3";&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know Tmax is the maximum time from the point where the Concentration is highest. So I thought it would be Tmax = time of Cmax.&lt;/P&gt;&lt;P&gt;Again, Cmax is correct, and I do not get any errors in my log. However, the output numbers from Tmax are incorrect. If anyone could offer any advice I would be grateful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Mackenzie&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2017 19:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412594#M100903</guid>
      <dc:creator>mackenzies3</dc:creator>
      <dc:date>2017-11-11T19:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maximum and array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412597#M100905</link>
      <description>&lt;P&gt;Hint: look at function WHICHN()&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/177017"&gt;@mackenzies3&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a project for a class that asks me to do 3 things&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use PROC TRANSPOSE to restructure the converted SAS data set as described in the Word document&lt;/LI&gt;
&lt;LI&gt;Using ARRAY statement&amp;nbsp;to compute the Cmax and Tmax&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;For each patient, compute the following: MEAN of the concentration values and MINIMUM of the concentration values.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I have completed all of the tasks correctly, except computing&amp;nbsp;&lt;SPAN&gt;T&lt;/SPAN&gt;max&lt;SPAN&gt;&amp;nbsp;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For this part of my project I have:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; temp3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set project2_transposed;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array conc[&lt;STRONG&gt;13&lt;/STRONG&gt;] C1-C13;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cmax= max(of conc{*});&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array times[&lt;STRONG&gt;13&lt;/STRONG&gt;] T1-T13;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tmax= max(of times(of Cmax);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by subject;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;print&lt;/STRONG&gt; data= temp3;&lt;/P&gt;
&lt;P&gt;title "Part3";&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know Tmax is the maximum time from the point where the Concentration is highest. So I thought it would be Tmax = time of Cmax.&lt;/P&gt;
&lt;P&gt;Again, Cmax is correct, and I do not get any errors in my log. However, the output numbers from Tmax are incorrect. If anyone could offer any advice I would be grateful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Mackenzie&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 05:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412597#M100905</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-13T05:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maximum and array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412598#M100906</link>
      <description>Thank you for your hint, but could you please expand a little bit?&lt;BR /&gt;&lt;BR /&gt;I'm very new to sas and we have yet to learn WHICHN() in my class.&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Nov 2017 19:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412598#M100906</guid>
      <dc:creator>mackenzies3</dc:creator>
      <dc:date>2017-11-11T19:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maximum and array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412600#M100908</link>
      <description>&lt;P&gt;Learn about it in SAS documentation. All users, experienced or not, look at it every day.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2017 19:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412600#M100908</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-11T19:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maximum and array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412630#M100914</link>
      <description>I guess I just am having trouble understanding how exactly to go from having the max of the concentration (Cmax), and max of time, to finding the time of the highest concentration (Tmax).&lt;BR /&gt;&lt;BR /&gt;We have 13 times, and 13 concentrations for 7 different subjects.&lt;BR /&gt;and the highest time is 32 for all of the subjects, but the highest concentrations differ between each subject.&lt;BR /&gt;&lt;BR /&gt;For instance, subject 1 has the highest concentration of 4.7 at time 2.&lt;BR /&gt;but then subject 2 has the highest concentration of 4.7 at time 3.&lt;BR /&gt;&lt;BR /&gt;So I'm very confused on how to make the Tmax = 2 for subject 1, but Tmax = 3 for subject 3 and so on.&lt;BR /&gt;&lt;BR /&gt;And I did look at WHICHN() but I don't even know where I would start with that. But thank you for your hint. I will be looking/trying.&lt;BR /&gt;</description>
      <pubDate>Sun, 12 Nov 2017 00:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412630#M100914</guid>
      <dc:creator>mackenzies3</dc:creator>
      <dc:date>2017-11-12T00:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maximum and array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412637#M100915</link>
      <description>&lt;P&gt;Good thinking so far. Since the conc and times arrays correspond elementwise, what you are looking for is the position of cmax in array conc in order to return the corresponding element from array times. Finding the position of cmax in array conc is what WHICHN can do...&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2017 03:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412637#M100915</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-12T03:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maximum and array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412794#M100971</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;It looks like this forum is more and more about home work. Maybe we're nearing end-of-term / end-of year.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 04:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412794#M100971</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-11-13T04:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maximum and array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412796#M100972</link>
      <description>&lt;P&gt;I hope the teachers are wise enough to check the forum.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 05:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412796#M100972</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-13T05:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maximum and array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412797#M100973</link>
      <description>&lt;P&gt;It's an online graduate course so we don't have access to traditional teaching settings or in-person help. It's harder to learn solely based on online lectures. The internet is an important tool to help us truly understand.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 05:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412797#M100973</guid>
      <dc:creator>mackenzies3</dc:creator>
      <dc:date>2017-11-13T05:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with maximum and array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412798#M100974</link>
      <description>&lt;P&gt;I'm not the internet! I'm a real person.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 05:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-maximum-and-array/m-p/412798#M100974</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-13T05:13:02Z</dc:date>
    </item>
  </channel>
</rss>

