<?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: Cumulative Insect-Days in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Cumulative-Insect-Days/m-p/421874#M67079</link>
    <description>&lt;P&gt;This approach works nicely. Thank you very much. I appreciate your help.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Sep 2021 00:22:48 GMT</pubDate>
    <dc:creator>bordini</dc:creator>
    <dc:date>2021-09-29T00:22:48Z</dc:date>
    <item>
      <title>Cumulative Insect-Days</title>
      <link>https://community.jmp.com/t5/Discussions/Cumulative-Insect-Days/m-p/421457#M67030</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help calculating something called Cumulative Insect-Days per treatment. I don't know how to do that as it involves calculating the mean of specific rows and the difference between two specific rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cumulative insect-days = [ (Xi + Xi+1) * average(Y+Yi+1) ] + (Yi+1)&lt;/P&gt;&lt;P&gt;Xi and Xi+1 are adjacent points in time&lt;/P&gt;&lt;P&gt;Yi and Yi+1 are corresponding insect numbers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done these calculations in Excel (attached), but I need to do them in JMP as I have several columns and rows of data. Formula is in excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bordini&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:37:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cumulative-Insect-Days/m-p/421457#M67030</guid>
      <dc:creator>bordini</dc:creator>
      <dc:date>2023-06-10T23:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Insect-Days</title>
      <link>https://community.jmp.com/t5/Discussions/Cumulative-Insect-Days/m-p/421494#M67037</link>
      <description>&lt;P&gt;Here is the formula that will create the values you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Row() == 1,
	val = :"Cumulative insect-days"n;
	lastVal = val;
,
	val = Mean( :Number of Insects, Lag( :Number of Insects ) ) * (:Date of Year - Lag( :Date of Year )) + lastVal;
	lastVal = val;
);
val;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1632791159185.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36124i6BE52BAAB96C498F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1632791159185.png" alt="txnelson_0-1632791159185.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 01:06:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cumulative-Insect-Days/m-p/421494#M67037</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-28T01:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Insect-Days</title>
      <link>https://community.jmp.com/t5/Discussions/Cumulative-Insect-Days/m-p/421874#M67079</link>
      <description>&lt;P&gt;This approach works nicely. Thank you very much. I appreciate your help.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 00:22:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cumulative-Insect-Days/m-p/421874#M67079</guid>
      <dc:creator>bordini</dc:creator>
      <dc:date>2021-09-29T00:22:48Z</dc:date>
    </item>
  </channel>
</rss>

