<?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: Excluding data from formula calculations in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6804#M6798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just so I understand completely what I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first "Excluded()" entry ensures that results are only displayed in non-excluded rows, while the second ensures that the mean (in the above case) is calculated for non-excluded and excluded rows separately. If I remove the "If" function but leave in the "Excluded()" clause in the "Col Mean()" function, I will get the same result in the non-excluded rows, but I will get values in the excluded rows as well (here only the mean for excluded data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 May 2013 09:06:44 GMT</pubDate>
    <dc:creator>JesperJohansen</dc:creator>
    <dc:date>2013-05-23T09:06:44Z</dc:date>
    <item>
      <title>Excluding data from formula calculations</title>
      <link>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6800#M6794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing a bunch of calculations using the "Col" type statistical functions (e.g. Col Mean). My problem is that my data set contains some bad data, that I want to exclude from the calculations. By simply selecting the relevant rows and choosing exclude, I apparently do not affect the formula results. So my question is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I exclude these bad data from the calculations without removing them from the data set entirely?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 06:34:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6800#M6794</guid>
      <dc:creator>JesperJohansen</dc:creator>
      <dc:date>2013-05-23T06:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data from formula calculations</title>
      <link>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6801#M6795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this construction in a column formula. If included, return mean by excluded state (0/1), else do nothing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #2800e1;"&gt;If&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;!&lt;/SPAN&gt;Excluded&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Col Mean&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;Column 1&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Excluded&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt; &lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 07:01:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6801#M6795</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2013-05-23T07:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data from formula calculations</title>
      <link>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6802#M6796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That in fact solved my problem. But is there no way to do it without incorporating the row-state into the formula? It seems strange to me that I need to tell JMP to exclude already excluded data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 08:34:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6802#M6796</guid>
      <dc:creator>JesperJohansen</dc:creator>
      <dc:date>2013-05-23T08:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data from formula calculations</title>
      <link>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6803#M6797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, not with the pre-evaluated statistics functions (see note on p. 304 in JMP 10 scripting guide).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summarize() accounts for excluded rows but is less efficient than e.g. col mean, and in my experience when Summarize() is used in column formulas the result is not automatically uppdated if rowstates are changed.&lt;/P&gt;&lt;P&gt;But in principle this formula should give the same result as the trick above (except that that the result will be also in excluded rows), but formulas may have to be forced to reevaluate upon changes in the datatable.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #2800e1;"&gt;summarize&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;m&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt;mean&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(:&lt;/STRONG&gt;Column 1&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;; m&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #2800e1;"&gt;&lt;SPAN style="color: #160091;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 08:52:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6803#M6797</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2013-05-23T08:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data from formula calculations</title>
      <link>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6804#M6798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just so I understand completely what I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first "Excluded()" entry ensures that results are only displayed in non-excluded rows, while the second ensures that the mean (in the above case) is calculated for non-excluded and excluded rows separately. If I remove the "If" function but leave in the "Excluded()" clause in the "Col Mean()" function, I will get the same result in the non-excluded rows, but I will get values in the excluded rows as well (here only the mean for excluded data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 09:06:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6804#M6798</guid>
      <dc:creator>JesperJohansen</dc:creator>
      <dc:date>2013-05-23T09:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data from formula calculations</title>
      <link>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6805#M6799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's correct. The optional second (and third etc..) argument in the col stat functions is reserved for a by-column, i.e. calculates the statistics for each group based on the values in a separate column. But it apparently also works with a binary argument like Excluded(), and not only with table columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 09:14:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/6805#M6799</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2013-05-23T09:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data from formula calculations</title>
      <link>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/86618#M38638</link>
      <description>&lt;P&gt;Thanks ms. That's the best formula&amp;nbsp;which I found&amp;nbsp;concerning excluded().&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 20:44:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excluding-data-from-formula-calculations/m-p/86618#M38638</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2019-01-02T20:44:34Z</dc:date>
    </item>
  </channel>
</rss>

