<?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: Rolling average (30 days) using continuous time data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512153#M73969</link>
    <description>&lt;P&gt;Unfortunately, this only averages the previous 30 values of MAX_VALUE. My data is not in discrete increments, for example, the previous 30 days for one output should have about 350 inputs, whereas the Col Moving average suggestion you have given me would have just 30 inputs (the previous 30 datapoints). Can the input for ARG 2 (Weighting),&amp;nbsp; ARG 3 (Before), ARG 4 (After) etc be manipulated to use DATETIME as an input such that it applies to every other row where DATETIME is less than or equal to the current rows DATETIME value?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 12:38:56 GMT</pubDate>
    <dc:creator>ControlKangaroo</dc:creator>
    <dc:date>2022-06-22T12:38:56Z</dc:date>
    <item>
      <title>Rolling average (30 days) using continuous time data</title>
      <link>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512038#M73966</link>
      <description>&lt;P&gt;I have 180 days of recent data totaling 2574 rows in JMP. I have included a file with just two columns, one is the DATETIME stamp and the other is the MAX_VALUE data at that timestamp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created an X-Y chart of MAX_VALUE (Y-Axis) vs DATETIME (X-Axis).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish to add a trendline where its value at any given time is equal to the average value of MAX_VALUE over the past 30 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody help me fit a line for the 30day moving average of this dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:25:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512038#M73966</guid>
      <dc:creator>ControlKangaroo</dc:creator>
      <dc:date>2023-06-11T11:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling average (30 days) using continuous time data</title>
      <link>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512139#M73968</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add a formula column using the Col Moving Average function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Moving Average( :MAX_VALUE, 1, 29, 0 )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 11:58:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512139#M73968</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2022-06-22T11:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling average (30 days) using continuous time data</title>
      <link>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512153#M73969</link>
      <description>&lt;P&gt;Unfortunately, this only averages the previous 30 values of MAX_VALUE. My data is not in discrete increments, for example, the previous 30 days for one output should have about 350 inputs, whereas the Col Moving average suggestion you have given me would have just 30 inputs (the previous 30 datapoints). Can the input for ARG 2 (Weighting),&amp;nbsp; ARG 3 (Before), ARG 4 (After) etc be manipulated to use DATETIME as an input such that it applies to every other row where DATETIME is less than or equal to the current rows DATETIME value?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 12:38:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512153#M73969</guid>
      <dc:creator>ControlKangaroo</dc:creator>
      <dc:date>2022-06-22T12:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling average (30 days) using continuous time data</title>
      <link>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512193#M73972</link>
      <description>&lt;P&gt;You could create DATE column to your data,then create summary table by using that date and the data column. Then calculate the rolling average (you might have to add missing dates, depending on how you want to manage them). After this has been calculated you can join it back to the original data.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 13:18:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512193#M73972</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-06-22T13:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling average (30 days) using continuous time data</title>
      <link>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512222#M73975</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Byron_JMP_0-1655905323176.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43462i9D5855C69D53B5EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Byron_JMP_0-1655905323176.png" alt="Byron_JMP_0-1655905323176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Not 100% sure this is right, but its close.&lt;/P&gt;
&lt;P&gt;Includes a formula to identify each individual day.&lt;/P&gt;
&lt;P&gt;Then uses an abuse of the moving range function in a other column.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 13:43:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512222#M73975</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2022-06-22T13:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling average (30 days) using continuous time data</title>
      <link>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512358#M73991</link>
      <description>&lt;P&gt;This is actually correct, I had arrived at this same dataset by using the following function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Moving Average( :MAX_VALUE, 1, :DATETIME &amp;lt;= 30 * 86400, 0 )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this function increments by seconds for 1 month (Over 2.5 million iterations) and JMP struggles for a minute before outputting the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way you have done it is much less memory demanding, Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:23:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rolling-average-30-days-using-continuous-time-data/m-p/512358#M73991</guid>
      <dc:creator>ControlKangaroo</dc:creator>
      <dc:date>2022-06-22T15:23:47Z</dc:date>
    </item>
  </channel>
</rss>

