<?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: AUDPC in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/AUDPC/m-p/431835#M68155</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The only way you could achieve this is by calculating the Polygon Area defined by your data points and the floor of the graph.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;area = Polygon Area( {0, 0}, {0, 10}, {10, 10}, {10, 0} );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;NOTE: 1) you can use this function in a formula. 2)It is critical to include the origins of the polygon as shown in the simple example above.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Nov 2021 05:18:54 GMT</pubDate>
    <dc:creator>Thierry_S</dc:creator>
    <dc:date>2021-11-01T05:18:54Z</dc:date>
    <item>
      <title>AUDPC</title>
      <link>https://community.jmp.com/t5/Discussions/AUDPC/m-p/431790#M68149</link>
      <description>&lt;P&gt;I conduct research within the agricultural field and I use excel like most people to organize my data. However, a common analysis is the area under the disease progress curve (AUDPC) to track the changes of the disease throughout the growing season. Is there any way to calculate the total area under a line graph without fitting a trend line/regression analysis.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:41:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/AUDPC/m-p/431790#M68149</guid>
      <dc:creator>travislr11</dc:creator>
      <dc:date>2023-06-09T00:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: AUDPC</title>
      <link>https://community.jmp.com/t5/Discussions/AUDPC/m-p/431835#M68155</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The only way you could achieve this is by calculating the Polygon Area defined by your data points and the floor of the graph.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;area = Polygon Area( {0, 0}, {0, 10}, {10, 10}, {10, 0} );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;NOTE: 1) you can use this function in a formula. 2)It is critical to include the origins of the polygon as shown in the simple example above.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 05:18:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/AUDPC/m-p/431835#M68155</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-11-01T05:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: AUDPC</title>
      <link>https://community.jmp.com/t5/Discussions/AUDPC/m-p/447752#M69448</link>
      <description>&lt;P&gt;Thierry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response. I am assuming the formula you posted is to be applied within the Excel software? Or is there a method for using this within the JMP software?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 11:41:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/AUDPC/m-p/447752#M69448</guid>
      <dc:creator>travislr11</dc:creator>
      <dc:date>2021-12-22T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: AUDPC</title>
      <link>https://community.jmp.com/t5/Discussions/AUDPC/m-p/447755#M69450</link>
      <description>&lt;P&gt;The formula posted is for JMP rather than Excel. Building on the reply from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp;you can do this kind of thing in JSL, the scripting language for JMP:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// Some simple data
dt =
New Table( "AUDPC Example",
	Add Rows( 4 ),
	New Column( "x", Numeric, "Continuous", Set Values( [0, 1, 2, 3] )),
	New Column( "y", Numeric, "Continuous", Set Values( [3, 4, 4.5, 5] ))
);

// A graph
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 526, 454 ),
	Show Control Panel( 0 ),
	Show Legend( 0 ),
	Variables( X( :x ), Y( :y ) ),
	Elements( Line( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"x",
			ScaleBox,
			{Min( -1 ), Max( 4 ), Inc( 0.5 ), Minor Ticks( 0 ),
			Add Ref Line( 0, "Dashed", "Red", "", 1 ),
			Add Ref Line( 3, "Dashed", "Red", "", 1 )}
		),
		Dispatch(
			{},
			"y",
			ScaleBox,
			{Format( "Best", 12 ), Min( -1 ), Max( 6 ), Inc( 1 ), Minor Ticks( 1 ),
			Add Ref Line( 0, "Dashed", "Red", "", 1 ),
			Add Ref Line( 1, "Dashed", "Red", "", 1 )}
		)
	)
);

// Start here . . .
dt = CurrentDataTable();
// Get the x and y values
xVals = Column(dt, "x") &amp;lt;&amp;lt; getValues;
yVals = Column(dt, "y") &amp;lt;&amp;lt; getValues;
// Insert two points that define the base of the polygon at the value y = 0
baseLine = [0];
xVals2 = VConcat(xVals[1], xVals, xVals[NRow(xVals)]);
yVals2 = VConcat(baseLine, yVals, baseline);
// Get the area
a2 = PolygonArea(xVals2, yVals2);
Print(a2);
// Insert two points that define the base of the polygon at the value y = 1
baseLine = [1];
xVals3 = VConcat(xVals[1], xVals, xVals[NRow(xVals)]);
yVals3 = VConcat(baseLine, yVals, baseline);
// Get the area
a3 = PolygonArea(xVals3, yVals3);
Print(a3);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do 'File &amp;gt; New &amp;gt; New Script', cut and paste the code above into the window that appears, then do 'Edit &amp;gt; Run Script'. I understand that you may not want to learn JSL. Note that this gives the area 'under' the polygon defined by the data values. You may or may not want the area under some kind of fitted curve, but this is possible too.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 13:08:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/AUDPC/m-p/447755#M69450</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-12-22T13:08:10Z</dc:date>
    </item>
  </channel>
</rss>

