<?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: Mann Kendall in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/3729#M3729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure to what degree (if at all) the Mann-Kendall test is related to the Kendall Tau statistic for non-parametric correlation.&amp;nbsp; The later can be accessed under the multivariate platform: Analyze&amp;gt;Multivariate Methods then from the multivariate report select Nonparametric Correlations from the hotspot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the tests are completely different I'd be interested in any references that you have for this method.&amp;nbsp; I'm considering building an add-in that implements a number of methods (e.g. Hurst Index) that have been developed for the field of hydrology &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 23:22:41 GMT</pubDate>
    <dc:creator>David_Burnham</dc:creator>
    <dc:date>2011-09-15T23:22:41Z</dc:date>
    <item>
      <title>Mann Kendall</title>
      <link>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/3728#M3728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. I'm trying to run a Mann-Kendall to test if a temporal trend is significant. Can't find it in the JMP manual or anything online. Anyone have any ideas?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 14:48:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/3728#M3728</guid>
      <dc:creator>aquastralis</dc:creator>
      <dc:date>2011-09-08T14:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mann Kendall</title>
      <link>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/3729#M3729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure to what degree (if at all) the Mann-Kendall test is related to the Kendall Tau statistic for non-parametric correlation.&amp;nbsp; The later can be accessed under the multivariate platform: Analyze&amp;gt;Multivariate Methods then from the multivariate report select Nonparametric Correlations from the hotspot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the tests are completely different I'd be interested in any references that you have for this method.&amp;nbsp; I'm considering building an add-in that implements a number of methods (e.g. Hurst Index) that have been developed for the field of hydrology &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 23:22:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/3729#M3729</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2011-09-15T23:22:41Z</dc:date>
    </item>
    <item>
      <title>Mann Kendall</title>
      <link>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/3730#M3730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even if the definitions Mann-Kendall test statistic and the Kendall Tau b often is described in different terms (from time series and correlation perspectives, respectively), they are essentially the same as far as I can tell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a script I wrote quite long ago. It calculates and shows the Theil's slope and performs the Mann-Kendall test. A parametric linear regression line is shown in the plot just for comparision. I planned to generalize the script by include a "By" function as well as the posibilty to account for seasonal patterns. But I have not had the time to realize those plans yet. I hope this will give you some ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #002de4;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Current Data Table&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #002de4;"&gt;&lt;SPAN style="color: #000000;"&gt;dlg &lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Column Dialog&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;"Estimate Theil slope and Kendall Tau from Data Table "&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;||&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #002de4;"&gt;Char&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt &lt;SPAN style="color: #001993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; get name &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ys &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; ColList&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"Select Y"&lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;maxcol&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mincol&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Datatype&lt;STRONG&gt;(&lt;/STRONG&gt; numeric &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Xs &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; ColList&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"Select X"&lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;maxcol&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mincol&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Datatype&lt;STRONG&gt;(&lt;/STRONG&gt; numeric &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Group &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; ColList&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"By (not working)"&lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; maxcol&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;colY &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; dlg&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"Ys"&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;colX &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; dlg&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"Xs"&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;colGroup &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; dlg&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"Group"&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #008f00;"&gt;//Calculation of Theil slope&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;n &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;N Rows&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;slopes &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;J&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; n&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; n&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&lt;SPAN style="color: #002de4;"&gt;For&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; i &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; i &lt;SPAN style="color: #001993;"&gt;&amp;lt;&lt;/SPAN&gt; n&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; i&lt;SPAN style="color: #001993;"&gt;++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #002de4;"&gt;For&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #002de4;"&gt;j&lt;/SPAN&gt; &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; i &lt;SPAN style="color: #001993;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;j&lt;/SPAN&gt; &lt;SPAN style="color: #001993;"&gt;&amp;lt;=&lt;/SPAN&gt; n&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;j&lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;slopes&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;j&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; &lt;STRONG&gt;(&lt;/STRONG&gt;colY&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #002de4;"&gt;j&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #001993;"&gt;-&lt;/SPAN&gt; colY&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;STRONG&gt;])&lt;/STRONG&gt; &lt;SPAN style="color: #001993;"&gt;/&lt;/SPAN&gt; &lt;STRONG&gt;(&lt;/STRONG&gt;colX&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #002de4;"&gt;j&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #001993;"&gt;-&lt;/SPAN&gt; colX&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;STRONG&gt;])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;theil &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;Quantile&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0.5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; slopes &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #008f00;"&gt;//Kendall's Tau b to test if slope differs from zero&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;mv &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; Multivariate&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Y&lt;STRONG&gt;(&lt;/STRONG&gt; colY&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; colX &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scatterplot Matrix&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Correlations multivariate&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Kendall's Tau&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #008f00;"&gt;//Plot data and add linear regression and Theil's slope&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;biv &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; Bivariate&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Y&lt;STRONG&gt;(&lt;/STRONG&gt; colY &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;X&lt;STRONG&gt;(&lt;/STRONG&gt; colX &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Fit Line&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;STRONG&gt;{&lt;/STRONG&gt;Line Color&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"Red"&lt;/SPAN&gt; &lt;STRONG&gt;)}&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Fit Special&lt;STRONG&gt;(&lt;/STRONG&gt; Slope&lt;STRONG&gt;(&lt;/STRONG&gt; theil &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt; &lt;STRONG&gt;{&lt;/STRONG&gt;Line Color&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"Green"&lt;/SPAN&gt; &lt;STRONG&gt;)}&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;invisible&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;rbiv &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; biv &lt;SPAN style="color: #001993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;report&lt;/SPAN&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;rbiv&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"Linear Fit"&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #001993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; close all like this&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;rbiv&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #002de4;"&gt;Outline Box&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;7&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)]&lt;/STRONG&gt; &lt;SPAN style="color: #001993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set title&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"Theil's Slope"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;db &lt;SPAN style="color: #001993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #002de4;"&gt;Report&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; mv &lt;STRONG&gt;)[&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"Multivariate"&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #001993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; parent&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;db &lt;SPAN style="color: #001993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; prepend&lt;STRONG&gt;(&lt;/STRONG&gt; rbiv &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;db&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #002de4;"&gt;Text Box&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)]&lt;/STRONG&gt; &lt;SPAN style="color: #001993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; set text&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"Theil's Slope"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;rbiv &lt;SPAN style="color: #001993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; close window&lt;SPAN style="color: #001993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 09:32:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/3730#M3730</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2011-09-16T09:32:52Z</dc:date>
    </item>
    <item>
      <title>Mann Kendall</title>
      <link>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/3731#M3731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks MS and Dave! I was not sure if Kendall's Tau and the Mann-Kendall test were the same (and/or related) either. Thanks for the info on the multivariate test and then for the script as well!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 00:00:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/3731#M3731</guid>
      <dc:creator>aquastralis</dc:creator>
      <dc:date>2011-09-19T00:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mann Kendall</title>
      <link>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/871417#M103511</link>
      <description>&lt;P&gt;Hi, Here's an update to this script which covers the situation where a column in the By Role (with 2 levels) is specified, using the Big Class example.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dlg = Column Dialog(

	"Estimate Theil slope and Kendall Tau from Data Table " || 
	Char( dt &amp;lt;&amp;lt; get name ), 
	Ys = ColList( "Select Y", 
		maxcol( 1 ), 
		mincol( 1 ), 
		Datatype( numeric )
	), 

	Xs = ColList( "Select X", 
		maxcol( 1 ), 
		mincol( 1 ), 
		Datatype( numeric )
	), 
	Group = ColList( "By", maxcol( 1 ) )
);

colY = Column( dt, dlg["Ys"] );
colX = Column( dt, dlg["Xs"] );
colGroup = Column( dt, dlg["Group"] ); 

//create subset data tables when By Role is used
subdt = dt &amp;lt;&amp;lt; Subset(
	By( :sex ),
	All rows,
	Selected columns only( 0 ),
);

//hide subset data tables, for 2 levels of the Group column in the By Role
subdt[1] &amp;lt;&amp;lt; Show Window(0);
subdt[2] &amp;lt;&amp;lt; Show Window(0);

//Calculation of Theil-Sen slope: A robust non-parametric estimate of trend magnitude.

theil = {}; //create empty list call 'theil'to store Theil-Sen slopes

for (k = 1, k &amp;lt;= Nitems(subdt), k++,
	curY = Column( subdt[k], dlg["Ys"] );
	curX = Column( subdt[k], dlg["Xs"] );
	

	n = N Rows( subdt[k] );
	slopes = J( n, n, . ); //this is initialized not as an empty matrix but it's full of missing values
	
For( i = 1, i &amp;lt; n, i++, 
	For( j = i+1, j &amp;lt;= n, j++, 
		slopes[i, j] = (curY[j] - curY[i]) / (curX[j] - curX[i])
	)
);

insert into(theil, Quantile( 0.5, slopes )); //calculate the median of all the slopes
);

new window("windowname",

/*Kendall's Tau b to test if slope differs from zero. Analogous to the Mann-Kendall significance test, which Outputs the S statistic and p-value.*/

mv = dt &amp;lt;&amp;lt; Multivariate(
	Y( colY, colX ), 
	Scatterplot Matrix( 0 ), 
	Correlations multivariate( 0 ), 
	Kendall's Tau( 1 ), /*see above*/
	By(colGroup)
);

//Plot data and add linear regression and Theil's slope

biv = dt &amp;lt;&amp;lt; Bivariate(
	Y( colY ), 
	X( colX ), 
	By(colGroup),
	Fit Line( {Line Color( "Red" )} ), 
	//invisible
);
);

//Plot Theil's Slopes using Fit special in Bivariate report
biv[1] &amp;lt;&amp;lt; Fit Special( Slope( theil[1] ), {Line Color( "Green" )});
biv[2] &amp;lt;&amp;lt; Fit Special( Slope( theil[2] ), {Line Color( "Green" )});

rbiv = biv &amp;lt;&amp;lt; Report;

rbiv[1]["Linear Fit"] &amp;lt;&amp;lt; close all like this;


//all of the second linear fit outline boxes under an outline box that contains the word "sex" in the title is what I want

tsb = rbiv &amp;lt;&amp;lt; Xpath("(//OutlineBox[text()='Linear Fit'])[2]");  //this returns the list of display boxes titled "Linear Fit" that I want to change to "Thiel's slope" and then I am capturing this reference with the variable name tsb


tsb &amp;lt;&amp;lt; set title( "Theil's Slope" );
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 May 2025 23:15:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mann-Kendall/m-p/871417#M103511</guid>
      <dc:creator>PatrickGiuliano</dc:creator>
      <dc:date>2025-05-01T23:15:31Z</dc:date>
    </item>
  </channel>
</rss>

