<?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: Evaluating slope of each cycle/season in a time series in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510703#M73861</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how can I make another data column that automatically identifies each cycle?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The existing column&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 132px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43375i016557B376436C78/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt; is attached&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2022 14:15:41 GMT</pubDate>
    <dc:creator>AlphaPanda86751</dc:creator>
    <dc:date>2022-06-17T14:15:41Z</dc:date>
    <item>
      <title>Evaluating slope of each cycle/season in a time series</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510682#M73851</link>
      <description>&lt;P&gt;I am trying to figure out the slope for each cycle in a time series and was wondering what could be done next to evaluate this.&amp;nbsp; The slope of the highlighted section in blue is to be found&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43377i3AA45CAB0B0C42B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43370iA80A2E0654597255/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:50:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510682#M73851</guid>
      <dc:creator>AlphaPanda86751</dc:creator>
      <dc:date>2023-06-09T00:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating slope of each cycle/season in a time series</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510695#M73856</link>
      <description>&lt;P&gt;You will need to create a new data column that identifies each cycle. Then use Analyze &amp;gt; Fit Y by X. Cast Column 5 in the Y role, Time in the X role, and the grouping column in the By role. Click OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Press and hold the Ctrl key for Windows or the Command key for macOS, click the red triangle next to the first Bivariate object, and select Fit Line. (Actually, it looks like the cycles have a non-linear change, so you might try Fit Polynomial degree=2 instead.) Right-click on a table of Parameter Estimates and select Make Combined Data Table.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 13:08:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510695#M73856</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-06-17T13:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating slope of each cycle/season in a time series</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510703#M73861</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how can I make another data column that automatically identifies each cycle?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The existing column&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 132px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43375i016557B376436C78/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt; is attached&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 14:15:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510703#M73861</guid>
      <dc:creator>AlphaPanda86751</dc:creator>
      <dc:date>2022-06-17T14:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating slope of each cycle/season in a time series</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510704#M73862</link>
      <description>&lt;P&gt;No importable file was attached.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 13:32:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510704#M73862</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-06-17T13:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating slope of each cycle/season in a time series</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510709#M73864</link>
      <description>&lt;P&gt;Do you mean the observations go up and down once is a cycle? Then based on the plot, the big jump might be a good indicator. The jumps are pretty large. To calculate jumps, you can generate them from Time Series platform directly. Look for Difference, then follow the steps accordingly. In the end, "Save" column from the Difference report.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_0-1655474267540.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43376i86E5F9A7E4A75F04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_0-1655474267540.png" alt="peng_liu_0-1655474267540.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Otherwise, using JMP column formula to generate the jumps is also straightforward. Right click on your data column, choose "New Formula Column", choose "Row", choose "Difference".&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 14:00:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510709#M73864</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-06-17T14:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating slope of each cycle/season in a time series</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510714#M73867</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2781"&gt;@peng_liu&lt;/a&gt;&amp;nbsp;Please see the revised diagram. I need the slopes of the lines starting from the peak point to the lowest point for each cycle .&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 14:14:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510714#M73867</guid>
      <dc:creator>AlphaPanda86751</dc:creator>
      <dc:date>2022-06-17T14:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating slope of each cycle/season in a time series</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510716#M73868</link>
      <description>&lt;P&gt;Yep, I understood correctly then. My suggestion was identify the jumps as I pointed out in the following screenshot. We won't be able to identify them in the raw form. But if you calculate the difference, which is the current row minus the previous row, these differences should stand out as big positive numbers. They will be your indicators of the starts of individual cycles. Then I guess that you need to come up a way to mark every segment by a unique value, followed by what &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt; suggested.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_0-1655475559560.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43378i9CABCABABA2211F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_0-1655475559560.png" alt="peng_liu_0-1655475559560.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 14:23:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510716#M73868</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-06-17T14:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating slope of each cycle/season in a time series</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510718#M73869</link>
      <description>&lt;P&gt;Create a new column and name it "Cycle".&amp;nbsp; Then paste the below formula into the formula for the new column, and see if it gives you the cycle values you are looking for.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Row() == 1,
	myCycle = 1;
	cflag = 0;
	holdCycle = 0;
);
If( :"Column 5 (Detrended)"n &amp;gt; Lag( :"Column 5 (Detrended)"n, 1 ) &amp;amp; cflag == 0,
	cflag = 1;
	holdCycle = myCycle;
	myCycle = .;
);

If( :"Column 5 (Detrended)"n &amp;gt; :"Column 5 (Detrended)"n[Row() + 1] &amp;amp; cflag == 1,
	cflag = 0;
	myCycle = holdCycle + 1;
);
myCycle;&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-1655475840623.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43379i99CB23642CCFAE5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1655475840623.png" alt="txnelson_0-1655475840623.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 14:47:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/510718#M73869</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-06-17T14:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating slope of each cycle/season in a time series</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/524447#M74916</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;Thanks for your suggestion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please modify the code such that the cycle will only increase if the preceding number is equal to or greater than 3 of the previous number?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 10:52:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-slope-of-each-cycle-season-in-a-time-series/m-p/524447#M74916</guid>
      <dc:creator>AlphaPanda86751</dc:creator>
      <dc:date>2022-07-21T10:52:59Z</dc:date>
    </item>
  </channel>
</rss>

