<?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: Calculate partial Area under the curve values (AUC's) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323703#M71784</link>
    <description>&lt;P&gt;What rule do you want to use for interpolation on your days? Since day 60 does not appear in your data there is not a value for the concentration. Are you assuming a linear interpolation for the value of concentration?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 16:36:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-01-10T16:36:22Z</dc:date>
    <item>
      <title>Calculate partial Area under the curve values (AUC's)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323488#M71714</link>
      <description>&lt;P&gt;data have;&lt;BR /&gt;infile cards expandtabs truncover;&lt;BR /&gt;input ID &amp;nbsp;Time Concentration;&lt;BR /&gt;cards;&lt;BR /&gt;21 0 0&lt;BR /&gt;21 0.021 27.1&lt;BR /&gt;21 0.033 74.9&lt;BR /&gt;21 0.052 142&lt;BR /&gt;21 0.094 191&lt;BR /&gt;21 0.18 197&lt;BR /&gt;21 0.346 242&lt;BR /&gt;21 0.51 350&lt;BR /&gt;21 1.015 442&lt;BR /&gt;21 2.015 555&lt;BR /&gt;21 3.01 593&lt;BR /&gt;21 4.013 540&lt;BR /&gt;21 5.016 425&lt;BR /&gt;21 6.016 460&lt;BR /&gt;21 7.02 610&lt;BR /&gt;21 9 514&lt;BR /&gt;21 10.001 466&lt;BR /&gt;21 11.007 503&lt;BR /&gt;21 12.014 415&lt;BR /&gt;21 13.024 458&lt;BR /&gt;21 14.017 448&lt;BR /&gt;21 28.035 44.7&lt;BR /&gt;21 56.02 366&lt;BR /&gt;21 88.033 278&lt;BR /&gt;21 120.026 247&lt;BR /&gt;21 215.973 228&lt;BR /&gt;21 246.013 186&lt;BR /&gt;21 276.978 251&lt;BR /&gt;21 306.206 210&lt;BR /&gt;21 334.98 190&lt;BR /&gt;21 365.073 183&lt;BR /&gt;21 393.094 179&lt;BR /&gt;21 425.052 217&lt;BR /&gt;21 456.056 180&lt;BR /&gt;21 484.043 290&lt;BR /&gt;21 522.051 317&lt;BR /&gt;21 550.059 201&lt;BR /&gt;21 582.078 339&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying calculate partial AUC's (30 and 60 days interval). I need an output as of the following.&lt;/P&gt;&lt;P&gt;want:&lt;/P&gt;&lt;P&gt;ID &amp;nbsp; &amp;nbsp; Time &amp;nbsp; &amp;nbsp; area&lt;/P&gt;&lt;P&gt;21 &amp;nbsp; &amp;nbsp; &amp;nbsp;60 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xxx &amp;nbsp; &amp;nbsp;(AUC of first 60 days)&lt;/P&gt;&lt;P&gt;21 &amp;nbsp; &amp;nbsp; &amp;nbsp;30.1 &amp;nbsp; &amp;nbsp; &amp;nbsp;xxx &amp;nbsp; &amp;nbsp;(AUC from day 1 to &amp;nbsp;30)&lt;/P&gt;&lt;P&gt;21 &amp;nbsp; &amp;nbsp; &amp;nbsp;30.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; xxx &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;(AUC from day 31 to &amp;nbsp;60)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;21 &amp;nbsp; &amp;nbsp; &amp;nbsp; 120 &amp;nbsp; &amp;nbsp; &amp;nbsp;xxx &amp;nbsp; &amp;nbsp; (&amp;nbsp;(AUC from day 61 to 120)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;21 &amp;nbsp; &amp;nbsp; &amp;nbsp; 120.1 &amp;nbsp; &amp;nbsp; &amp;nbsp;xxx &amp;nbsp; &amp;nbsp; (&amp;nbsp;(AUC from day 61 to &amp;nbsp;90)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;21 &amp;nbsp; &amp;nbsp; &amp;nbsp; 120.2 &amp;nbsp; &amp;nbsp; xxx &amp;nbsp; &amp;nbsp; (&amp;nbsp;(AUC from day 91 to 120)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and so on...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;xxx- refers some calculated value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help to achieve this ouput in SAS??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 14:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323488#M71714</guid>
      <dc:creator>imabition_gmail_com</dc:creator>
      <dc:date>2017-01-10T14:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate partial AUC's</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323515#M71723</link>
      <description>&lt;P&gt;You want in your result calculations by days but you give us in your source data a Time variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do the values of Time translate into days, i.e. for Time=&lt;SPAN&gt;582.078?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 03:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323515#M71723</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-01-10T03:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate partial AUC's</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323560#M71733</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;: Time is given in days. So, Time=582 corresponds to 582 days.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 10:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323560#M71733</guid>
      <dc:creator>imabition_gmail_com</dc:creator>
      <dc:date>2017-01-10T10:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate partial AUC's</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323607#M71753</link>
      <description>&lt;P&gt;It looks to me that you want to create a report using different grouping conditions for time. I don't really understand what these grouping conditions are, so here just throwing an approach how you coud create grouping variables for further processing, i.e using Proc Means or Proc SQL or a data step for your calculations of variable area.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data demo;
  set have;
  grouping30=floor(time/30);
  grouping60=floor(time/60);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jan 2017 13:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323607#M71753</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-01-10T13:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate partial AUC's</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323613#M71755</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;: Actually I need to calculate the Area under the curve (Concentration Vs. Time) using trapezoidal rule.</description>
      <pubDate>Tue, 10 Jan 2017 13:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323613#M71755</guid>
      <dc:creator>imabition_gmail_com</dc:creator>
      <dc:date>2017-01-10T13:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate partial Area under the curve values (AUC's)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323703#M71784</link>
      <description>&lt;P&gt;What rule do you want to use for interpolation on your days? Since day 60 does not appear in your data there is not a value for the concentration. Are you assuming a linear interpolation for the value of concentration?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323703#M71784</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-10T16:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate partial Area under the curve values (AUC's)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323706#M71785</link>
      <description>&lt;P&gt;See the articles &lt;A href="http://blogs.sas.com/content/iml/2011/06/01/the-trapezoidal-rule-of-integration.html" target="_self"&gt;"The trapezoidal rule of integration"&lt;/A&gt;&amp;nbsp;and &lt;A href="http://blogs.sas.com/content/iml/2011/06/03/a-statistical-application-of-numerical-integration-the-area-under-an-roc-curve.html" target="_self"&gt;"A statistical application of numerical integration: The area under an ROC curve"&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A SAS/IML module is provided. If you don't have SAS/IML, then you can use the DIF function in the DATA step to&amp;nbsp;compute the widths of the trapezoids.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-partial-Area-under-the-curve-values-AUC-s/m-p/323706#M71785</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-01-10T16:46:53Z</dc:date>
    </item>
  </channel>
</rss>

