<?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: Detect inflection point or changing point in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873368#M345077</link>
    <description>&lt;P&gt;What are you trying to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to find a maximum or minumum, then look at where the slope changes sign. In calculus, this is called the &lt;A href="https://en.wikipedia.org/wiki/Derivative_test" target="_self"&gt;First Derivative Test&lt;/A&gt; for a local extremum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a monotonic curve, the curve can change concavity. You can use the &lt;A href="https://en.wikipedia.org/wiki/Second_derivative#Concavity" target="_self"&gt;Second Derivative Test&lt;/A&gt; to determine if a curve is concave up or concave down at a point. If there is a point at which the first derivative is zero and the second derivative changes sign, then that point is called an &lt;EM&gt;inflection point&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A curve can change concavity without having an inflection point. And, of course, some&amp;nbsp;monotonic curves do not change concavity, such as y=x^2 or y=exp(x).&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 13:40:28 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2023-05-02T13:40:28Z</dc:date>
    <item>
      <title>Detect inflection point or changing point</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/872663#M344763</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35763"&gt;@yabwon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know for a bell-shaped curve or a U-shaped curve, it is easy to find the changing point based on the model output from proc mixed by calculating the derivative.&lt;/P&gt;
&lt;P&gt;However, if the derivatives for each point monotonously increase, e.g. for the blue line in the below picture, then there is no such extreme value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How could we detect the changing point for those types of curves?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jie111_0-1682624951626.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83348iEC4C64D55A01AB24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jie111_0-1682624951626.png" alt="Jie111_0-1682624951626.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 19:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/872663#M344763</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2023-04-27T19:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inflection point or changing point</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/872796#M344817</link>
      <description>I haven't done it myself in SAS, but it sounds like you might be looking for a spline model.  &lt;BR /&gt;&lt;BR /&gt;SAS has a few ways to do that, I believe, but the only procedure that comes to mind off the top of my head is PROC ADAPTIVEREG.  &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_odsgraph_sect109.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_odsgraph_sect109.htm&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Apr 2023 13:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/872796#M344817</guid>
      <dc:creator>awesome_opossum</dc:creator>
      <dc:date>2023-04-28T13:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inflection point or changing point</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873127#M344987</link>
      <description>&lt;P&gt;I'm not sure what data you have available. Are you saying that you have piecewise linear (PL) curves and you want to find the "elbow" points at which the slope changes? If so, read &lt;A href="https://blogs.sas.com/content/iml/2013/08/28/finite-diff-estimate-maxi.html" target="_self"&gt;"Using finite differences to estimate the maximum of a time series."&lt;/A&gt;&amp;nbsp;The article talks about using finite differences to estimate the maximum, which is defined as when the slope of the PL curve changes sign. However, you can use the same technique and the DIF function to find when the slope of a PL line changes slope:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
input x y;
datalines;
1 2
2 3
4 5
5 7
7 11
8 13
;

proc sgplot data=Have;
series x=x y=y / markers;
run;

data Want;
set Have;
slope = dif(y) / dif(x);  /* estimate the slope by using backward difference */
SlopeChanged = dif(slope);          /* indicate when the slope changes */
run;

proc print data=Want; run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 May 2023 10:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873127#M344987</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-05-01T10:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inflection point or changing point</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873311#M345047</link>
      <description>Thank you for your kind reply.&lt;BR /&gt;The paper is very interesting.</description>
      <pubDate>Tue, 02 May 2023 07:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873311#M345047</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2023-05-02T07:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inflection point or changing point</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873338#M345058</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The method you mention could deal with the graph with the changing sign of slopes, eg. from positive to negative.&lt;/P&gt;
&lt;P&gt;However, some graphs in my example are without the changing direction of slopes. I am wondering how to detect the changing point in this situation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my dataset. X= back_timescale, y = predicted.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="558"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;Obs&lt;/TD&gt;
&lt;TD width="119"&gt;back_timescale&lt;/TD&gt;
&lt;TD width="64"&gt;Predicted&lt;/TD&gt;
&lt;TD width="64"&gt;Lower&lt;/TD&gt;
&lt;TD width="64"&gt;Upper&lt;/TD&gt;
&lt;TD width="64"&gt;slope&lt;/TD&gt;
&lt;TD width="119"&gt;SlopeChanged&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;1&lt;/TD&gt;
&lt;TD&gt;-15&lt;/TD&gt;
&lt;TD width="64"&gt;29.40&lt;/TD&gt;
&lt;TD width="64"&gt;27.60&lt;/TD&gt;
&lt;TD width="64"&gt;31.19&lt;/TD&gt;
&lt;TD width="64"&gt;.&lt;/TD&gt;
&lt;TD width="119"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;2&lt;/TD&gt;
&lt;TD&gt;-14&lt;/TD&gt;
&lt;TD width="64"&gt;28.86&lt;/TD&gt;
&lt;TD width="64"&gt;27.49&lt;/TD&gt;
&lt;TD width="64"&gt;30.22&lt;/TD&gt;
&lt;TD&gt;-0.54&lt;/TD&gt;
&lt;TD width="119"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;3&lt;/TD&gt;
&lt;TD&gt;-13&lt;/TD&gt;
&lt;TD width="64"&gt;28.44&lt;/TD&gt;
&lt;TD width="64"&gt;27.37&lt;/TD&gt;
&lt;TD width="64"&gt;29.52&lt;/TD&gt;
&lt;TD&gt;-0.42&lt;/TD&gt;
&lt;TD width="119"&gt;0.12&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;4&lt;/TD&gt;
&lt;TD&gt;-12&lt;/TD&gt;
&lt;TD width="64"&gt;28.13&lt;/TD&gt;
&lt;TD width="64"&gt;27.25&lt;/TD&gt;
&lt;TD width="64"&gt;29.02&lt;/TD&gt;
&lt;TD&gt;-0.31&lt;/TD&gt;
&lt;TD width="119"&gt;0.11&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;5&lt;/TD&gt;
&lt;TD&gt;-11&lt;/TD&gt;
&lt;TD width="64"&gt;27.91&lt;/TD&gt;
&lt;TD width="64"&gt;27.13&lt;/TD&gt;
&lt;TD width="64"&gt;28.69&lt;/TD&gt;
&lt;TD&gt;-0.22&lt;/TD&gt;
&lt;TD width="119"&gt;0.09&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;6&lt;/TD&gt;
&lt;TD&gt;-10&lt;/TD&gt;
&lt;TD width="64"&gt;27.76&lt;/TD&gt;
&lt;TD width="64"&gt;27.06&lt;/TD&gt;
&lt;TD width="64"&gt;28.47&lt;/TD&gt;
&lt;TD&gt;-0.15&lt;/TD&gt;
&lt;TD width="119"&gt;0.07&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;7&lt;/TD&gt;
&lt;TD&gt;-9&lt;/TD&gt;
&lt;TD width="64"&gt;27.67&lt;/TD&gt;
&lt;TD width="64"&gt;27.02&lt;/TD&gt;
&lt;TD width="64"&gt;28.31&lt;/TD&gt;
&lt;TD&gt;-0.10&lt;/TD&gt;
&lt;TD width="119"&gt;0.05&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;8&lt;/TD&gt;
&lt;TD&gt;-8&lt;/TD&gt;
&lt;TD width="64"&gt;27.60&lt;/TD&gt;
&lt;TD width="64"&gt;27.01&lt;/TD&gt;
&lt;TD width="64"&gt;28.20&lt;/TD&gt;
&lt;TD&gt;-0.06&lt;/TD&gt;
&lt;TD width="119"&gt;0.04&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;9&lt;/TD&gt;
&lt;TD&gt;-7&lt;/TD&gt;
&lt;TD width="64"&gt;27.56&lt;/TD&gt;
&lt;TD width="64"&gt;27.01&lt;/TD&gt;
&lt;TD width="64"&gt;28.11&lt;/TD&gt;
&lt;TD&gt;-0.05&lt;/TD&gt;
&lt;TD width="119"&gt;0.02&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;10&lt;/TD&gt;
&lt;TD&gt;-6&lt;/TD&gt;
&lt;TD width="64"&gt;27.51&lt;/TD&gt;
&lt;TD width="64"&gt;27.00&lt;/TD&gt;
&lt;TD width="64"&gt;28.03&lt;/TD&gt;
&lt;TD&gt;-0.05&lt;/TD&gt;
&lt;TD&gt;0.00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;11&lt;/TD&gt;
&lt;TD&gt;-5&lt;/TD&gt;
&lt;TD width="64"&gt;27.45&lt;/TD&gt;
&lt;TD width="64"&gt;26.95&lt;/TD&gt;
&lt;TD width="64"&gt;27.95&lt;/TD&gt;
&lt;TD&gt;-0.06&lt;/TD&gt;
&lt;TD&gt;-0.02&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;12&lt;/TD&gt;
&lt;TD&gt;-4&lt;/TD&gt;
&lt;TD width="64"&gt;27.35&lt;/TD&gt;
&lt;TD width="64"&gt;26.85&lt;/TD&gt;
&lt;TD width="64"&gt;27.85&lt;/TD&gt;
&lt;TD&gt;-0.10&lt;/TD&gt;
&lt;TD&gt;-0.04&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;13&lt;/TD&gt;
&lt;TD&gt;-3&lt;/TD&gt;
&lt;TD width="64"&gt;27.20&lt;/TD&gt;
&lt;TD width="64"&gt;26.70&lt;/TD&gt;
&lt;TD width="64"&gt;27.70&lt;/TD&gt;
&lt;TD&gt;-0.15&lt;/TD&gt;
&lt;TD&gt;-0.05&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;14&lt;/TD&gt;
&lt;TD&gt;-2&lt;/TD&gt;
&lt;TD width="64"&gt;26.97&lt;/TD&gt;
&lt;TD width="64"&gt;26.47&lt;/TD&gt;
&lt;TD width="64"&gt;27.47&lt;/TD&gt;
&lt;TD&gt;-0.22&lt;/TD&gt;
&lt;TD&gt;-0.07&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;15&lt;/TD&gt;
&lt;TD&gt;-1&lt;/TD&gt;
&lt;TD width="64"&gt;26.66&lt;/TD&gt;
&lt;TD width="64"&gt;26.15&lt;/TD&gt;
&lt;TD width="64"&gt;27.16&lt;/TD&gt;
&lt;TD&gt;-0.31&lt;/TD&gt;
&lt;TD&gt;-0.09&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;16&lt;/TD&gt;
&lt;TD width="119"&gt;0&lt;/TD&gt;
&lt;TD width="64"&gt;26.24&lt;/TD&gt;
&lt;TD width="64"&gt;25.69&lt;/TD&gt;
&lt;TD width="64"&gt;26.78&lt;/TD&gt;
&lt;TD&gt;-0.42&lt;/TD&gt;
&lt;TD&gt;-0.11&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the graph between x and y.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jie111_1-1683026289508.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83490i4F3E274DD102571B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jie111_1-1683026289508.png" alt="Jie111_1-1683026289508.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the back_timescale include limited point (-15 to 0 by 1 ), could I use different point as the spline point and then compare their fit statistics (AIC, BIC) to decide the best spline point?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 11:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873338#M345058</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2023-05-02T11:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inflection point or changing point</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873355#M345069</link>
      <description>&lt;P&gt;I think your table shows the solution: Look for where&amp;nbsp;&lt;SPAN&gt;SlopeChanged changes sign. That indicates that the graph is changing from concave up to concave down, or, equivalently, that the graph is at an inflection point. For your example, this happens at Obs=10.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 12:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873355#M345069</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-05-02T12:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inflection point or changing point</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873365#M345074</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some different situations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the below graph. Each time point is with a smaller slope compared with the previous one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help in advance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jie111_0-1683033751865.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83491iC9ECA335C469F61F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jie111_0-1683033751865.png" alt="Jie111_0-1683033751865.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="634"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;Obs&lt;/TD&gt;
&lt;TD width="91"&gt;back_timescale&lt;/TD&gt;
&lt;TD width="105"&gt;Predicted&lt;/TD&gt;
&lt;TD width="64"&gt;Lower&lt;/TD&gt;
&lt;TD width="64"&gt;Upper&lt;/TD&gt;
&lt;TD width="64"&gt;slope&lt;/TD&gt;
&lt;TD width="64"&gt;SlopeChanged&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;1&lt;/TD&gt;
&lt;TD&gt;-15&lt;/TD&gt;
&lt;TD width="105"&gt;135.06&lt;/TD&gt;
&lt;TD width="64"&gt;130.82&lt;/TD&gt;
&lt;TD width="64"&gt;139.31&lt;/TD&gt;
&lt;TD width="64"&gt;.&lt;/TD&gt;
&lt;TD width="64"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;2&lt;/TD&gt;
&lt;TD&gt;-14&lt;/TD&gt;
&lt;TD width="105"&gt;135.52&lt;/TD&gt;
&lt;TD width="64"&gt;132.57&lt;/TD&gt;
&lt;TD width="64"&gt;138.47&lt;/TD&gt;
&lt;TD width="64"&gt;0.46&lt;/TD&gt;
&lt;TD width="64"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;3&lt;/TD&gt;
&lt;TD&gt;-13&lt;/TD&gt;
&lt;TD width="105"&gt;135.94&lt;/TD&gt;
&lt;TD width="64"&gt;133.72&lt;/TD&gt;
&lt;TD width="64"&gt;138.16&lt;/TD&gt;
&lt;TD width="64"&gt;0.42&lt;/TD&gt;
&lt;TD&gt;-0.03&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;4&lt;/TD&gt;
&lt;TD&gt;-12&lt;/TD&gt;
&lt;TD width="105"&gt;136.30&lt;/TD&gt;
&lt;TD width="64"&gt;134.38&lt;/TD&gt;
&lt;TD width="64"&gt;138.23&lt;/TD&gt;
&lt;TD width="64"&gt;0.37&lt;/TD&gt;
&lt;TD&gt;-0.06&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;5&lt;/TD&gt;
&lt;TD&gt;-11&lt;/TD&gt;
&lt;TD width="105"&gt;136.59&lt;/TD&gt;
&lt;TD width="64"&gt;134.78&lt;/TD&gt;
&lt;TD width="64"&gt;138.41&lt;/TD&gt;
&lt;TD width="64"&gt;0.29&lt;/TD&gt;
&lt;TD&gt;-0.08&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;6&lt;/TD&gt;
&lt;TD&gt;-10&lt;/TD&gt;
&lt;TD width="105"&gt;136.79&lt;/TD&gt;
&lt;TD width="64"&gt;135.06&lt;/TD&gt;
&lt;TD width="64"&gt;138.51&lt;/TD&gt;
&lt;TD width="64"&gt;0.19&lt;/TD&gt;
&lt;TD&gt;-0.10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;7&lt;/TD&gt;
&lt;TD&gt;-9&lt;/TD&gt;
&lt;TD width="105"&gt;136.87&lt;/TD&gt;
&lt;TD width="64"&gt;135.27&lt;/TD&gt;
&lt;TD width="64"&gt;138.46&lt;/TD&gt;
&lt;TD width="64"&gt;0.08&lt;/TD&gt;
&lt;TD&gt;-0.12&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;8&lt;/TD&gt;
&lt;TD&gt;-8&lt;/TD&gt;
&lt;TD width="105"&gt;136.81&lt;/TD&gt;
&lt;TD width="64"&gt;135.36&lt;/TD&gt;
&lt;TD width="64"&gt;138.26&lt;/TD&gt;
&lt;TD&gt;-0.06&lt;/TD&gt;
&lt;TD&gt;-0.14&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;9&lt;/TD&gt;
&lt;TD&gt;-7&lt;/TD&gt;
&lt;TD width="105"&gt;136.59&lt;/TD&gt;
&lt;TD width="64"&gt;135.25&lt;/TD&gt;
&lt;TD width="64"&gt;137.93&lt;/TD&gt;
&lt;TD&gt;-0.21&lt;/TD&gt;
&lt;TD&gt;-0.16&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;10&lt;/TD&gt;
&lt;TD&gt;-6&lt;/TD&gt;
&lt;TD width="105"&gt;136.20&lt;/TD&gt;
&lt;TD width="64"&gt;134.90&lt;/TD&gt;
&lt;TD width="64"&gt;137.51&lt;/TD&gt;
&lt;TD&gt;-0.39&lt;/TD&gt;
&lt;TD&gt;-0.18&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;11&lt;/TD&gt;
&lt;TD&gt;-5&lt;/TD&gt;
&lt;TD width="105"&gt;135.61&lt;/TD&gt;
&lt;TD width="64"&gt;134.27&lt;/TD&gt;
&lt;TD width="64"&gt;136.95&lt;/TD&gt;
&lt;TD&gt;-0.59&lt;/TD&gt;
&lt;TD&gt;-0.20&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;12&lt;/TD&gt;
&lt;TD&gt;-4&lt;/TD&gt;
&lt;TD width="105"&gt;134.81&lt;/TD&gt;
&lt;TD width="64"&gt;133.42&lt;/TD&gt;
&lt;TD width="64"&gt;136.19&lt;/TD&gt;
&lt;TD&gt;-0.81&lt;/TD&gt;
&lt;TD&gt;-0.22&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;13&lt;/TD&gt;
&lt;TD&gt;-3&lt;/TD&gt;
&lt;TD width="105"&gt;133.76&lt;/TD&gt;
&lt;TD width="64"&gt;132.37&lt;/TD&gt;
&lt;TD width="64"&gt;135.16&lt;/TD&gt;
&lt;TD&gt;-1.04&lt;/TD&gt;
&lt;TD&gt;-0.24&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;14&lt;/TD&gt;
&lt;TD&gt;-2&lt;/TD&gt;
&lt;TD width="105"&gt;132.46&lt;/TD&gt;
&lt;TD width="64"&gt;131.09&lt;/TD&gt;
&lt;TD width="64"&gt;133.83&lt;/TD&gt;
&lt;TD&gt;-1.30&lt;/TD&gt;
&lt;TD&gt;-0.26&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;15&lt;/TD&gt;
&lt;TD&gt;-1&lt;/TD&gt;
&lt;TD width="105"&gt;130.88&lt;/TD&gt;
&lt;TD width="64"&gt;129.40&lt;/TD&gt;
&lt;TD width="64"&gt;132.36&lt;/TD&gt;
&lt;TD&gt;-1.58&lt;/TD&gt;
&lt;TD&gt;-0.28&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182"&gt;16&lt;/TD&gt;
&lt;TD width="91"&gt;0&lt;/TD&gt;
&lt;TD width="105"&gt;129.01&lt;/TD&gt;
&lt;TD width="64"&gt;126.97&lt;/TD&gt;
&lt;TD width="64"&gt;131.04&lt;/TD&gt;
&lt;TD&gt;-1.88&lt;/TD&gt;
&lt;TD&gt;-0.30&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 02 May 2023 13:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873365#M345074</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2023-05-02T13:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inflection point or changing point</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873368#M345077</link>
      <description>&lt;P&gt;What are you trying to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to find a maximum or minumum, then look at where the slope changes sign. In calculus, this is called the &lt;A href="https://en.wikipedia.org/wiki/Derivative_test" target="_self"&gt;First Derivative Test&lt;/A&gt; for a local extremum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a monotonic curve, the curve can change concavity. You can use the &lt;A href="https://en.wikipedia.org/wiki/Second_derivative#Concavity" target="_self"&gt;Second Derivative Test&lt;/A&gt; to determine if a curve is concave up or concave down at a point. If there is a point at which the first derivative is zero and the second derivative changes sign, then that point is called an &lt;EM&gt;inflection point&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A curve can change concavity without having an inflection point. And, of course, some&amp;nbsp;monotonic curves do not change concavity, such as y=x^2 or y=exp(x).&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 13:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873368#M345077</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-05-02T13:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Detect inflection point or changing point</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873371#M345080</link>
      <description>Thank you for your reply, Rick.&lt;BR /&gt;I want to check how many years before death the decline in SBP became faster.&lt;BR /&gt;&lt;BR /&gt;I guess the derivative test you mentioned could be helpful. I would perform the test.&lt;BR /&gt;&lt;BR /&gt;Thank you again for your patience and help.</description>
      <pubDate>Tue, 02 May 2023 13:48:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Detect-inflection-point-or-changing-point/m-p/873371#M345080</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2023-05-02T13:48:48Z</dc:date>
    </item>
  </channel>
</rss>

