<?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: Trend Evaluation where X = Ordinal  and Y = Continuous? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Trend-Evaluation-where-X-Ordinal-and-Y-Continuous/m-p/106622#M39040</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;, in JMP 13 Graph Builder, you can add a Line of Fit via&amp;nbsp; the UI or use this saved script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :GROUP ), Y( :MESUREMENTS ) ),
	Elements(
		Points( X, Y, Legend( 3 ) ),
		Points( X, Y, Legend( 4 ), Summary Statistic( "Mean" ) ),
		Line( X, Y, Legend( 5 ) ),
		Line Of Fit( X, Y, Legend( 6 ), R²( 1 ), Equation( 1 ) )
	),
	SendToReport( Dispatch( {"Line Of Fit"}, "", OutlineBox, {Close( 0 )} ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the result.&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="image.png" style="width: 724px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15134iD03AE10BD03C50FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I would follow this approach:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use Analyze &amp;gt; Fit Y by X to run a one way ANOVA, the means should increase with Group and you should test for global significance difference in the means then compare the groups.&amp;nbsp; For example, does Group 3 have a statistically different mean that Group 4, etc.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Look at the successive differences in the group means ( 2-1, 3-2, 4-3), they are are all positive (0.58, 0.47, 0.32). 4-3 is not significant at 0.05, however, the p-value is 0.07 which provides some indication of a trend, but maybe slowing.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 612px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15135i4B8F54864AAEE75F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I would not recommend a higher order model without more context on this ordinal Group. For example, this could be the luck of the draw, that the order of these four groups result is 1,2,3,4&amp;nbsp; one out of 24&amp;nbsp; possible ordering (4! different outcomes).&amp;nbsp; If there is a "cause" for this ordering like dose, or repetition (learning) or some social group, the model should be built using the "cause" variables.&lt;/LI&gt;
&lt;LI&gt;A simple method other than Graph Builder&amp;nbsp; to support&amp;nbsp; the "trend" is to right click on the means and standard deviation table and select &lt;STRONG&gt;Make into Data Table&lt;/STRONG&gt;. Then use Fit Y by X with the Mean as Y and Group as X (make it continuous) the ft the line&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;However, when looking for a shift in the "distribution" of these groups, I like to take a different approach:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;From your table, compute the distribution quantiles for each Group, 95, 90, 75, 50, 25, 10, 5 using &lt;STRONG&gt;Tables &amp;gt; Summary.&lt;/STRONG&gt; The resulting table needs a little work: stack the quantiles, simplify the Quantile ID.&lt;/LI&gt;
&lt;LI&gt;Then I like to look at the relationship of the 90th percentile (for example) across the groups. Is it changing as much of as the mean?&lt;/LI&gt;
&lt;LI&gt;The summary QuantizedTable and the script to create the analysis below is attached to the table. This graphic indicates that the entire distribution is shifting, not just the mean... which lends strength to the argument of a trend by group&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Let me reiterate, this is an exploratory analysis. Any modeling or further investigation should be placed on the drivers/cause of the shift.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 726px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15136i674BC94E2FDC0BBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 13:32:58 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2019-01-16T13:32:58Z</dc:date>
    <item>
      <title>Trend Evaluation where X = Ordinal  and Y = Continuous?</title>
      <link>https://community.jmp.com/t5/Discussions/Trend-Evaluation-where-X-Ordinal-and-Y-Continuous/m-p/106533#M39024</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;I would like to know if it is possible to evaluate(in JMP 13.1) trends in a data where X is ordinal (4 Groups) and Y is continuous (see attached file).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="TREND.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15121i73C870B07974115F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TREND.png" alt="TREND.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Based on a visual inspection, it appears that the means of Measurements are progressively higher with each group but I have not been able to find a method to evaluate this formally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TS&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 22:03:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trend-Evaluation-where-X-Ordinal-and-Y-Continuous/m-p/106533#M39024</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2019-01-15T22:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trend Evaluation where X = Ordinal  and Y = Continuous?</title>
      <link>https://community.jmp.com/t5/Discussions/Trend-Evaluation-where-X-Ordinal-and-Y-Continuous/m-p/106622#M39040</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;, in JMP 13 Graph Builder, you can add a Line of Fit via&amp;nbsp; the UI or use this saved script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :GROUP ), Y( :MESUREMENTS ) ),
	Elements(
		Points( X, Y, Legend( 3 ) ),
		Points( X, Y, Legend( 4 ), Summary Statistic( "Mean" ) ),
		Line( X, Y, Legend( 5 ) ),
		Line Of Fit( X, Y, Legend( 6 ), R²( 1 ), Equation( 1 ) )
	),
	SendToReport( Dispatch( {"Line Of Fit"}, "", OutlineBox, {Close( 0 )} ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the result.&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="image.png" style="width: 724px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15134iD03AE10BD03C50FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I would follow this approach:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use Analyze &amp;gt; Fit Y by X to run a one way ANOVA, the means should increase with Group and you should test for global significance difference in the means then compare the groups.&amp;nbsp; For example, does Group 3 have a statistically different mean that Group 4, etc.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Look at the successive differences in the group means ( 2-1, 3-2, 4-3), they are are all positive (0.58, 0.47, 0.32). 4-3 is not significant at 0.05, however, the p-value is 0.07 which provides some indication of a trend, but maybe slowing.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 612px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15135i4B8F54864AAEE75F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I would not recommend a higher order model without more context on this ordinal Group. For example, this could be the luck of the draw, that the order of these four groups result is 1,2,3,4&amp;nbsp; one out of 24&amp;nbsp; possible ordering (4! different outcomes).&amp;nbsp; If there is a "cause" for this ordering like dose, or repetition (learning) or some social group, the model should be built using the "cause" variables.&lt;/LI&gt;
&lt;LI&gt;A simple method other than Graph Builder&amp;nbsp; to support&amp;nbsp; the "trend" is to right click on the means and standard deviation table and select &lt;STRONG&gt;Make into Data Table&lt;/STRONG&gt;. Then use Fit Y by X with the Mean as Y and Group as X (make it continuous) the ft the line&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;However, when looking for a shift in the "distribution" of these groups, I like to take a different approach:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;From your table, compute the distribution quantiles for each Group, 95, 90, 75, 50, 25, 10, 5 using &lt;STRONG&gt;Tables &amp;gt; Summary.&lt;/STRONG&gt; The resulting table needs a little work: stack the quantiles, simplify the Quantile ID.&lt;/LI&gt;
&lt;LI&gt;Then I like to look at the relationship of the 90th percentile (for example) across the groups. Is it changing as much of as the mean?&lt;/LI&gt;
&lt;LI&gt;The summary QuantizedTable and the script to create the analysis below is attached to the table. This graphic indicates that the entire distribution is shifting, not just the mean... which lends strength to the argument of a trend by group&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Let me reiterate, this is an exploratory analysis. Any modeling or further investigation should be placed on the drivers/cause of the shift.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 726px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15136i674BC94E2FDC0BBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 13:32:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trend-Evaluation-where-X-Ordinal-and-Y-Continuous/m-p/106622#M39040</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-01-16T13:32:58Z</dc:date>
    </item>
  </channel>
</rss>

