<?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: Formula to interpolate between columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63595#M34043</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1051"&gt;@markschahl&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt; says, reshaping your data will give you much more flexibility with your visualization options. However, since you asked how to do it without transforming the data table, JMP 14 has a new option in the Graph Builder Parallel Plot that will do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drag your %ile columns to the x-axis and select the Parallel Plot element. Right-click the x-axis and select Combine Scales=&amp;gt;Parallel Merged:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graph Builder.gif" style="width: 982px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11653i24FAA5708FBA443B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Graph Builder.gif" alt="Graph Builder.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regarding the formula for your %ile.Of.Interest column, this should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interpolate(&lt;BR /&gt;&amp;nbsp;:T.Of.Interest,&lt;BR /&gt;&amp;nbsp;Data Table( "Distillation Curve Interpolation" )[Row(), Index( 2, 13 )],&lt;BR /&gt;&amp;nbsp;[0.05, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jul 2018 14:26:01 GMT</pubDate>
    <dc:creator>jerry_cooper</dc:creator>
    <dc:date>2018-07-21T14:26:01Z</dc:date>
    <item>
      <title>Formula to interpolate between columns</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63514#M34029</link>
      <description>&lt;P&gt;Hi! Got a request from one our users in refining to interpolate a crude distillation curve. Some background info:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="YouTube Video on Distillation Plots" href="https://www.youtube.com/watch?v=nFJy6F_E50o" target="_blank"&gt;YouTube Video on Distillation Plots&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="ASTM D7169" href="https://www.astm.org/Standards/D7169.htm" target="_self"&gt;ASTM D7169&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data table has twelve columns with the boiling points for different volume%iles of the crude. I want a formula that will interpolate across the columns to calculate how much has a boiling point less than T.Of.Interest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that the Interpolate() function does this. I also know that I need some way to get the values of the %ile columns into a list, probably using Get As Matrix(). I have yet to venture into the Matrix...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interpolate( T.Of.Interest, [0.05, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95], [&amp;lt;the columns with the boiling points&amp;gt;] );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the column values into a list?&lt;/P&gt;&lt;P&gt;Or, is there a better way to do this?&lt;/P&gt;&lt;P&gt;Without transforming the data table, is there a way to plot the BP list versus the %ile list?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:25:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63514#M34029</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2023-06-09T23:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to interpolate between columns</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63592#M34041</link>
      <description>&lt;P&gt;You did not mention which version of JMP that you are using. JMP 14 allows scripting syntax, that earlier versions do not allow. My suggestion will use JSL, in case you are using an older version of JMP.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unless you create a graph from matrices, that is draw your own graph, the table needs a different structure, either stacked or transposed.&amp;nbsp; The attached script reorganizes the table and creates a few graphs.&amp;nbsp; Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is&amp;nbsp; the JSL for interpolate&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Data Table( "Distillation Curve Interpolation" );

qofi = Column(dt, "%ile.Of.Interest" );
qvec = [.005, .05,.10, .20, .30, .40, .50, .60, .70, .80, .90, .95];
tofi = :Name("T.Of.Interest");

For( i=1, i &amp;lt;= nrow(dt), i++,
   bpvec   = dt[i,2::13];
   qofi[i] = Round( interpolate(tofi, bpvec, qvec ), 3);	
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 10:50:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63592#M34041</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-07-21T10:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to interpolate between columns</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63595#M34043</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1051"&gt;@markschahl&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt; says, reshaping your data will give you much more flexibility with your visualization options. However, since you asked how to do it without transforming the data table, JMP 14 has a new option in the Graph Builder Parallel Plot that will do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drag your %ile columns to the x-axis and select the Parallel Plot element. Right-click the x-axis and select Combine Scales=&amp;gt;Parallel Merged:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graph Builder.gif" style="width: 982px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11653i24FAA5708FBA443B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Graph Builder.gif" alt="Graph Builder.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regarding the formula for your %ile.Of.Interest column, this should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interpolate(&lt;BR /&gt;&amp;nbsp;:T.Of.Interest,&lt;BR /&gt;&amp;nbsp;Data Table( "Distillation Curve Interpolation" )[Row(), Index( 2, 13 )],&lt;BR /&gt;&amp;nbsp;[0.05, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 14:26:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63595#M34043</guid>
      <dc:creator>jerry_cooper</dc:creator>
      <dc:date>2018-07-21T14:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to interpolate between columns</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63596#M34044</link>
      <description>&lt;P&gt;Thanks! Worked perfectly. I am using JMP Pro 14.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 16:36:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63596#M34044</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2018-07-21T16:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to interpolate between columns</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63597#M34045</link>
      <description>&lt;P&gt;Thanks, Jerry! Worked nicely. Many folks in the company will leverage both solutions to this post.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 16:39:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63597#M34045</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2018-07-21T16:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to interpolate between columns</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63598#M34046</link>
      <description>&lt;P&gt;Jerry, This is very cool.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 19:06:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63598#M34046</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-07-21T19:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to interpolate between columns</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63609#M34047</link>
      <description>&lt;P&gt;This is an FYI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you are using JMP 14, below is the formula to get columns 2-13 into a row vector. Note the grave accent, the symbol for transpose or Transpose( Current Data Table()[ Row(), 2::13] ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Current Data Table()[Row(), Index( 2, 13 )]`&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried using the table variable qvec, but the formula would not work. However, using a column where all values were the quantiles did work. The table is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula column had a different looking syntax in the display. In JSL, it is &lt;STRONG&gt;Interpolate(T.Of.Interest, BPvec, Qvec)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11663i531B26AEC2BFF30D/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;P&gt;-fyi-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 05:23:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-interpolate-between-columns/m-p/63609#M34047</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-07-22T05:23:13Z</dc:date>
    </item>
  </channel>
</rss>

