<?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 Comparing offset between curves in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Comparing-offset-between-curves/m-p/385840#M63596</link>
    <description>&lt;P&gt;I have two populations of data on a Y-by-X plot. I want to quantify the difference between the two populations somehow, but have a couple of issues.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The populations have different distributions of x-values, making it difficult to compare averages without chopping off some of the data.&lt;/LI&gt;&lt;LI&gt;The trends curve, so I can't compare the equations easily.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ideally, I'm looking for a way to quantify the 'average' difference in Y at a given X. Is there a way I can do this easily within JMP?&lt;/P&gt;&lt;P&gt;Y-by-X plot attached.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 00:33:44 GMT</pubDate>
    <dc:creator>HarriBradbeer</dc:creator>
    <dc:date>2023-06-09T00:33:44Z</dc:date>
    <item>
      <title>Comparing offset between curves</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-offset-between-curves/m-p/385840#M63596</link>
      <description>&lt;P&gt;I have two populations of data on a Y-by-X plot. I want to quantify the difference between the two populations somehow, but have a couple of issues.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The populations have different distributions of x-values, making it difficult to compare averages without chopping off some of the data.&lt;/LI&gt;&lt;LI&gt;The trends curve, so I can't compare the equations easily.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ideally, I'm looking for a way to quantify the 'average' difference in Y at a given X. Is there a way I can do this easily within JMP?&lt;/P&gt;&lt;P&gt;Y-by-X plot attached.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:33:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-offset-between-curves/m-p/385840#M63596</guid>
      <dc:creator>HarriBradbeer</dc:creator>
      <dc:date>2023-06-09T00:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing offset between curves</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-offset-between-curves/m-p/385882#M63600</link>
      <description>&lt;P&gt;Here is a thought. Your curves look like they can be described quite well by a quadratic model. So have your data set up as 3 columns: Group, X, and Y.&lt;/P&gt;
&lt;P&gt;Use Fit Model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y goes in as Y.&lt;/P&gt;
&lt;P&gt;Build a model with effects for Group, X, X*X, Group*X, and Group*X*X.&lt;/P&gt;
&lt;P&gt;Run the model and look at the parameter estimates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The estimate for Group will give you the offset in the intercepts for the models.&lt;/P&gt;
&lt;P&gt;The estimate for Group*X will give you the change in the slopes between the two models.&lt;/P&gt;
&lt;P&gt;The estimate for Group*X* will give you the change in the quadratic terms between the two models.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By breaking it up this way, you have a better description of what and how the groups differ without having to explore EVERY possible X and calculating a difference. But, you could still do that by using the profiler. Place the slider for X at your desired location and look at the change in the Group profile.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 16:45:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-offset-between-curves/m-p/385882#M63600</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2021-05-17T16:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing offset between curves</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-offset-between-curves/m-p/385895#M63603</link>
      <description>&lt;P&gt;Hi, here is one easy approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Right-click in your graph and select Smoother &amp;gt; Save Formula.&lt;/P&gt;
&lt;P&gt;2) Look at the formula in the data table... it will have 2 "Spline Eval" pieces, one for each member in the group.... something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_0-1621270494707.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32889i43545F439CCF6B5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brady_brady_0-1621270494707.png" alt="brady_brady_0-1621270494707.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3) Copy + paste each individual piece, so that it operates on all rows, not just rows belonging to a specific group, into a new formula column.&lt;/P&gt;
&lt;P&gt;***** NOTE: this may involve extrapolation in your case, so heed the relevant interpretive cautions. Each formula will look something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_3-1621271009019.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32892iB0D4FEFC7306A859/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brady_brady_3-1621271009019.png" alt="brady_brady_3-1621271009019.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will produce something like the last 2 columns, which I've named Curve 1 and Curve 2, in your table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_1-1621270787914.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32890i46885D3164B4BAF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_1-1621270787914.png" alt="brady_brady_1-1621270787914.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Next, compute the difference in these 2 columns, using a new formula column or a 1-click transform from within Graph Builder, and graph the difference column and the 2 formula columns you previously created vs. x, to view the results:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_2-1621270859471.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32891i0AE42EE570C234DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_2-1621270859471.png" alt="brady_brady_2-1621270859471.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a table with illustrative table scripts and formula columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 17:08:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-offset-between-curves/m-p/385895#M63603</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-05-17T17:08:13Z</dc:date>
    </item>
  </channel>
</rss>

