<?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: reference to a baseline value in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/225937#M44841</link>
    <description>Very nice! Thank's&lt;BR /&gt;Just to understand, what is the function of [1] in the formula?&lt;BR /&gt;&lt;BR /&gt;Nico</description>
    <pubDate>Mon, 16 Sep 2019 16:50:16 GMT</pubDate>
    <dc:creator>praco</dc:creator>
    <dc:date>2019-09-16T16:50:16Z</dc:date>
    <item>
      <title>reference to a baseline value</title>
      <link>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/46603#M26559</link>
      <description>We perform tests that measure performance of a device over time. The output is a value relative to the starting value. Right now to get to such relative performance, I setup a jmp sheet in such a way that I know what the reference is: Example:&lt;PRE&gt;Row     Device           Time               Performance
1             T1              0                     97
2             T2              0                     93
3             T3              0                     95
4             T1             100                    83
5             T2             100                    82
6             T3             100                    83&lt;/PRE&gt;For the relative performance, I setup a formula script&lt;PRE&gt;perf_0 = match (Device, "T1", Performance[1], "T2", Performance[2], "T3", Performance[3]);
Performance / perf_0&lt;/PRE&gt;This works well with a limited number of data points, but is prone to typing errors for large data sets. Is there a better way to have this automated and less prone to errors? Note that the Performance value at time 0, is not necessarily the maximum or minimum value.</description>
      <pubDate>Tue, 31 Oct 2017 19:26:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/46603#M26559</guid>
      <dc:creator>robhanssen</dc:creator>
      <dc:date>2017-10-31T19:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a baseline value</title>
      <link>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/46607#M26561</link>
      <description>&lt;P&gt;Hi, robhanssen!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you've intuited, there are probably better ways to do what you intend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend a script with an Associative Array.&amp;nbsp; Please reference the Scripting Guide, and the JMP mockup of your dataset and an example of a script enclosed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 14:36:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/46607#M26561</guid>
      <dc:creator>Kevin_Anderson</dc:creator>
      <dc:date>2017-11-01T14:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a baseline value</title>
      <link>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/46779#M26645</link>
      <description>&lt;P&gt;If the table is sorted after ascending time, this formula should work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Performance / :Performance[Col Min(Row(), :Device)]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Nov 2017 21:55:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/46779#M26645</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2017-11-04T21:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a baseline value</title>
      <link>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/46781#M26647</link>
      <description>&lt;P&gt;Some ideas:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make a new column indicating that the row is a baseline value, then search for it just as &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/182"&gt;@ms&lt;/a&gt;&amp;nbsp;suggested.&lt;/LI&gt;&lt;LI&gt;Use a separate data table and a linked column to find the baseline.&amp;nbsp; I have not found a&amp;nbsp;reliably way to script this yet but if/once that is possible it you could cross out #3.&lt;/LI&gt;&lt;LI&gt;Use a separate data table and look the value up in that table (similar to vlookup).&amp;nbsp; A sample is attached, maybe someone knows of an easier formula though.&lt;/LI&gt;&lt;LI&gt;Use a table variable. In the same sample script the device value pairs are on individual lines and parsed with regex.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sun, 05 Nov 2017 02:56:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/46781#M26647</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2017-11-05T02:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a baseline value</title>
      <link>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/68712#M34893</link>
      <description>&lt;P&gt;Hi all, I have the same question. However, I need a more reliable solution, I mean, not relying on row number, as my sheet can be mixed up.&lt;/P&gt;&lt;P&gt;So, is there a way to get the value from :performance of the row having the lowest value in :Time for each device, or even better: the value corresponding at Time=0 for each Device...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I'm not that clear...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nico&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 08:21:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/68712#M34893</guid>
      <dc:creator>praco</dc:creator>
      <dc:date>2018-08-18T08:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a baseline value</title>
      <link>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/68725#M34898</link>
      <description>&lt;P&gt;Here is a formula that will work.&amp;nbsp; I have also attached a data table with it applied.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
currentDevice = :Device;
:Performance / :Performance[(dt &amp;lt;&amp;lt; get rows where( :Device == currentDevice &amp;amp; :Time == 0 ))[1]];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="performance.GIF" style="width: 654px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12092i049AC616B06EAA3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="performance.GIF" alt="performance.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 14:03:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/68725#M34898</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-18T14:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a baseline value</title>
      <link>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/225937#M44841</link>
      <description>Very nice! Thank's&lt;BR /&gt;Just to understand, what is the function of [1] in the formula?&lt;BR /&gt;&lt;BR /&gt;Nico</description>
      <pubDate>Mon, 16 Sep 2019 16:50:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reference-to-a-baseline-value/m-p/225937#M44841</guid>
      <dc:creator>praco</dc:creator>
      <dc:date>2019-09-16T16:50:16Z</dc:date>
    </item>
  </channel>
</rss>

