<?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 Calculating and Plotting Percent of Increase in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51409#M29143</link>
    <description>&lt;P&gt;Hi. New to JMP.&lt;/P&gt;&lt;P&gt;I am plotting resistance values over time from a csv dump. How do I calculate and plot the percent of increase or delta? Tab or script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am collecting data from 99 boards and reading 5 channels per board over time (10x).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to plot the resistance data over time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 185px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9361i4B3AC6172A88720D/image-dimensions/185x295?v=v2" width="185" height="295" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Graph: Shows resistance values on the left. I want to plot the percent of change increase or decrease.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 640px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9362iB81F927CB5EC6F7E/image-dimensions/640x493?v=v2" width="640" height="493" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2018 19:44:05 GMT</pubDate>
    <dc:creator>rmiyasato</dc:creator>
    <dc:date>2018-02-15T19:44:05Z</dc:date>
    <item>
      <title>Calculating and Plotting Percent of Increase</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51409#M29143</link>
      <description>&lt;P&gt;Hi. New to JMP.&lt;/P&gt;&lt;P&gt;I am plotting resistance values over time from a csv dump. How do I calculate and plot the percent of increase or delta? Tab or script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am collecting data from 99 boards and reading 5 channels per board over time (10x).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to plot the resistance data over time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 185px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9361i4B3AC6172A88720D/image-dimensions/185x295?v=v2" width="185" height="295" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Graph: Shows resistance values on the left. I want to plot the percent of change increase or decrease.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 640px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9362iB81F927CB5EC6F7E/image-dimensions/640x493?v=v2" width="640" height="493" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 19:44:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51409#M29143</guid>
      <dc:creator>rmiyasato</dc:creator>
      <dc:date>2018-02-15T19:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating and Plotting Percent of Increase</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51415#M29149</link>
      <description>&lt;P&gt;Hi, rmiyasato!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Welcome.&amp;nbsp; Of course, this is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;% change is, of course, dependent upon the specification of values in the numerator and denominator of the equation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you wish % change from starting values?&amp;nbsp; From each subsequent value?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 21:10:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51415#M29149</guid>
      <dc:creator>Kevin_Anderson</dc:creator>
      <dc:date>2018-02-15T21:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating and Plotting Percent of Increase</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51416#M29150</link>
      <description>Awesome!!!&lt;BR /&gt;&lt;BR /&gt;From the starting value.</description>
      <pubDate>Thu, 15 Feb 2018 21:11:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51416#M29150</guid>
      <dc:creator>rmiyasato</dc:creator>
      <dc:date>2018-02-15T21:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating and Plotting Percent of Increase</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51419#M29151</link>
      <description>&lt;P&gt;Here's my current script.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;PROBEDATA = Open(
Pick File(),
columns(
Column( "SCANID", Character, "Nominal" ),
Column( "IM#", Character, "Nominal" ),
Column( "LREQ", Numeric, "Continuous", Format( "Best", 10 ) ),
Column(
"DATE/TIME",
Numeric,
"Continuous",
Format( "m/d/y h:m:s", 23, 0 ),
Input Format( "m/d/y h:m:s", 0 )
),
Column( "T(x)", Character, "Nominal" ),
Column( "BOARD", Numeric, "Continuous", Format( "Best", 10 ) ),
Column( "CHANNEL", Numeric, "Continuous", Format( "Best", 10 ) ),
Column( "DATA", Numeric, "Continuous", Format( "Best", 10 ) )
),
Import Settings(
End Of Line( CRLF, CR, LF ),
End Of Field( Comma, CSV( 0 ) ),
Strip Quotes( 1 ),
Use Apostrophe as Quotation Mark( 0 ),
Scan Whole File( 1 ),
Treat empty columns as numeric( 0 ),
CompressNumericColumns( 0 ),
CompressCharacterColumns( 0 ),
CompressAllowListCheck( 0 ),
Labels( 1 ),
Column Names Start( 1 ),
Data Starts( 2 ),
Lines To Read( "All" ),
Year Rule( "20xx" )
)
);

PROBEDATA &amp;lt;&amp;lt; Graph Builder(
Size( 1750, 1245 ),
Automatic Recalc( 0 ),
Variables(
X( :Name( "T(x)" ) ),
Y( :DATA ),
Group X(
:CHANNEL,
Order By( :BOARD, Ascending, Order Statistic( "Mean" ) )
),
Group Y( :BOARD, Levels( 99 ), N View Levels( 10 ) )
),
Elements(
Points( X, Y, Legend( 53 ) ),
Caption Box(
X,
Y,
Legend( 54 ),
Summary Statistic( "Range" ),
X Position( "Left" )
)
)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 21:26:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51419#M29151</guid>
      <dc:creator>rmiyasato</dc:creator>
      <dc:date>2018-02-15T21:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating and Plotting Percent of Increase</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51420#M29152</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;Is it possible to do this?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11038"&gt;@rmiyasato&lt;/a&gt;, Welcome to the community!&amp;nbsp; And yes, anything is possible if you believe in yourself and work hard to achieve your dreams.&lt;/P&gt;&lt;P&gt;What isn't clear is if you want to compute the percentage difference from T00 for all subsequent time points, or the percentage difference from the previous time point.&amp;nbsp; I'll describe both.&lt;/P&gt;&lt;P&gt;Start by sorting your data by BOARD, CHANNEL, and T(x) in that order using Tables &amp;gt; Sort.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;% Difference from Previous Time Point&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Add a new column with this formula: (you can copy and paste right into the table)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :Name( "T(X)" ) != "T00",
	(:Data[Row()] - :Data[Row() - 1]) / :Data[Row() - 1],
	0
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This uses the row() function to compute the difference of Data in the current row from the previous row, and divide the difference by the value of the previous row.&lt;/P&gt;&lt;P&gt;Format the column to have a Percent format via Column Info.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;% Difference from T00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For this, we'll create 2 new columns.&amp;nbsp; The first is purely auxiliary and will contain the T00 value for the current Board/Channel combination.&amp;nbsp; I called the column "T00 Value" and used this column formula:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :Name( "T(X)" ) == "T00",
	:Data,
	:T00 Value[Row() - 1]
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It has a recursive reference to itself, which is normally bad practice.&lt;/P&gt;&lt;P&gt;Next, we'll compute the %Difference from T00 in another new column using this column formula:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(:Data - :T00 Value) / :T00 Value&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Change the format to a Percent format.&lt;/P&gt;&lt;P&gt;Here's what the result looks like with my made up table:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PercentDiffTable.PNG" style="width: 604px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9364iBCCACBDC3C70DB94/image-size/large?v=v2&amp;amp;px=999" role="button" title="PercentDiffTable.PNG" alt="PercentDiffTable.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm attaching this table to this post.&lt;/P&gt;&lt;P&gt;**Note: I should add that if you resort your table again, all the formulas will re-evaluate and screw everything up.&amp;nbsp; You can just remove the formulas so the values are static.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 21:21:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51420#M29152</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-02-15T21:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating and Plotting Percent of Increase</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51432#M29159</link>
      <description>Thanks! First time posting a question. This is awesome! Thanks again for the help! Worked great!</description>
      <pubDate>Fri, 16 Feb 2018 00:20:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-and-Plotting-Percent-of-Increase/m-p/51432#M29159</guid>
      <dc:creator>rmiyasato</dc:creator>
      <dc:date>2018-02-16T00:20:44Z</dc:date>
    </item>
  </channel>
</rss>

