<?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: Evaluating Dif Function by Column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Evaluating-Dif-Function-by-Column/m-p/85261#M38153</link>
    <description>&lt;P&gt;I believe this formula will do what you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :sex == Lag( :sex ),
	Dif( :weight ),
	.
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 07 Dec 2018 22:25:00 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-12-07T22:25:00Z</dc:date>
    <item>
      <title>Evaluating Dif Function by Column</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-Dif-Function-by-Column/m-p/85236#M38152</link>
      <description>&lt;P&gt;I'm trying to evaluate the difference between two rows using the "Dif" function; however, the evaluation is&amp;nbsp;continuous and has no regard for other columns. For example, with the "Big Class" DT I run the&amp;nbsp;script below, but it will still compute the weight difference between a male and female. Is there any way around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

dt &amp;lt;&amp;lt; Sort( By( :age, :sex ), Order( Ascending, Ascending ) );

dt &amp;lt;&amp;lt; New Column("Weight Delta", Formula(Dif(:weight)));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Dec 2018 21:23:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-Dif-Function-by-Column/m-p/85236#M38152</guid>
      <dc:creator>Ksrzg01</dc:creator>
      <dc:date>2018-12-07T21:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating Dif Function by Column</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-Dif-Function-by-Column/m-p/85261#M38153</link>
      <description>&lt;P&gt;I believe this formula will do what you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :sex == Lag( :sex ),
	Dif( :weight ),
	.
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Dec 2018 22:25:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-Dif-Function-by-Column/m-p/85261#M38153</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-07T22:25:00Z</dc:date>
    </item>
  </channel>
</rss>

