<?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: Col Functions and Row States in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352644#M60198</link>
    <description>&lt;P&gt;It looks like it is used with a column formula where the Row() function is defined as it is evaluated.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2021 19:37:02 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2021-01-25T19:37:02Z</dc:date>
    <item>
      <title>Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/351705#M60119</link>
      <description>&lt;P&gt;According to the release notes for version 15 of JMP:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The Col functions honor excluded rows through the Excluded(Row State()) function.&lt;BR /&gt;Col Maximum( :height, :sex, Excluded( Row State() ) );&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;However, this syntax doesn't seem to work.&amp;nbsp; Can anyone suggest the corect syntax?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:03:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/351705#M60119</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2023-06-09T22:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/351769#M60122</link>
      <description>&lt;P&gt;I quickly tested and seemed that using only Excluded() seemed to work (I'm using 15.2.1).&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 14:11:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/351769#M60122</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-01-22T14:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/351799#M60128</link>
      <description>&lt;P&gt;Thanks for letting me know.&amp;nbsp; That doesn't work with 15.1 - I'll try and do a comparison with 15.2.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 15:56:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/351799#M60128</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2021-01-22T15:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352166#M60143</link>
      <description>&lt;P&gt;I'll add this very simple example here if anyone else comes around:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1611387497073.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29656i3B33D38029A8A93B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1611387497073.png" alt="jthi_0-1611387497073.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Table("ExcludeColMax",
	Add Rows(6),
	Compress File When Saved(1),
	New Column("A",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Set Values([1, 10, 100, 2, 20, 200]),
		Set Display Width(46)
	),
	New Column("B",
		Character,
		"Nominal",
		Set Values({"A", "A", "A", "B", "B", "B"})
	),
	New Column("C",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Formula(Col Maximum(:A, :B, Excluded())),
		Set Display Width(65)
	),
	Set Row States([0, 0, 6, 6, 6, 0])
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Jan 2021 07:39:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352166#M60143</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-01-23T07:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352172#M60148</link>
      <description>&lt;P&gt;I've tested with v15.2 and the issue is the same.&amp;nbsp; Note the use case is using the function within a script, not within a column formula (not sure why I would want a column statistic in a row).&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 13:21:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352172#M60148</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2021-01-23T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352310#M60164</link>
      <description>&lt;P&gt;Maybe honoring means in this case that the excluded is just additional byVar in column statistics formulas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want maximum value of column without excluded values, could you use Summarize instead of Col Maximum? It seems to ignore excluded rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt =New Table("ExcludeColMax",
	Add Rows(6),
	Compress File When Saved(1),
	New Column("A",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Set Values([1, 10, 100, 2, 20, 200]),
		Set Display Width(46)
	),
	New Column("B",
		Character,
		"Nominal",
		Set Values({"A", "A", "A", "B", "B", "B"})
	),
	New Column("C",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Formula(Col Maximum(:A, :B, Excluded())),
		Set Display Width(65)
	),
	Set Row States([0, 0, 6, 6, 0, 6])
);

Write("Looping col max:");
For Each Row(
	Show(Col Maximum(:A, :B, Excluded()))
);

Write("\!N\!NOnly col max:"); 
Show(Col Maximum(:A, :B, Excluded()));

Write("\!N\!NSummarize:");
Summarize(dt, exg = By(:B), exm = Max(:A));
Show(Eval List({exg, exm}));
Show(Max(exm));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Jan 2021 12:14:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352310#M60164</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-01-24T12:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352358#M60172</link>
      <description>&lt;P&gt;I can code a solution - my question was specifically about whether version 15 allowed it to be done solely using the column functions - that was the impression I got from the release notes.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 19:40:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352358#M60172</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2021-01-24T19:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352363#M60176</link>
      <description>Dave,&lt;BR /&gt;Very confusing.  I think this is a question for our friend Wendy.</description>
      <pubDate>Sun, 24 Jan 2021 22:27:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352363#M60176</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-24T22:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352456#M60182</link>
      <description>&lt;P&gt;Interesting. A pre-release build of JMP 16 seems to get it right for r=1 and r=2, but not thereafter:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

mw = J(NRow(dt), 2, .);
for(r=1, r&amp;lt;=NRow(dt), r++,
	Row() = r;
	RowState(Row()) = ExcludedState(1);
	mw[r,1] = ColMean(:weight, Excluded(RowState(Row())));
	mw[r,2] = ColMean(:weight, Excluded());
	RowState(Row()) = ExcludedState(0);
	);
AsTable(mw);

dt &amp;lt;&amp;lt; Distribution(
			Continuous Distribution(
				Column( :weight ),
				Quantiles( 0 ),
				Histogram( 0 ),
				Outlier Box Plot( 0 )
			),
			Local Data Filter(
				Add Filter(
					columns( Transform Column( "Row", Nominal, Formula( Row() ) ) ),
					Where( Transform Column( "Row", Nominal, Formula( Row() ) ) == 1 ),
					Display(
						Transform Column( "Row", Nominal, Formula( Row() ) ),
						N Items( 15 ),
						Find( Set Text( "" ) )
					)
				)
			)
		);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Jan 2021 13:58:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352456#M60182</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-01-25T13:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352468#M60184</link>
      <description>&lt;P&gt;Working with Big Class (of course):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;colmaximum(:height,excluded(rowstate()))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is working.&amp;nbsp; But on one computer but not another.&amp;nbsp; Both running 15.1.0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I am totally confused!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Screenshots on next post ...&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 15:49:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352468#M60184</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2021-01-25T15:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352475#M60186</link>
      <description>&lt;P&gt;On one computer it works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this-works.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29671iFAF1B79A6CF218CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="this-works.PNG" alt="this-works.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And on the another it fails:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this-fails.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29672i29A202A2EC2076A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="this-fails.png" alt="this-fails.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 15:48:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352475#M60186</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2021-01-25T15:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352644#M60198</link>
      <description>&lt;P&gt;It looks like it is used with a column formula where the Row() function is defined as it is evaluated.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 19:37:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352644#M60198</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-01-25T19:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352686#M60207</link>
      <description>&lt;P&gt;According to the &lt;A href="https://www.jmp.com/support/help/en/15.2/?os=win&amp;amp;source=application&amp;amp;utm_source=helpmenu&amp;amp;utm_medium=application#page/jmp/statistical-functions-2.shtml#ww4866150" target="_self"&gt;documentation&lt;/A&gt;, when a By variable is specified the function should be used in a column formula or For Each Row():&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;(Optional) A By variable to compute&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Search_Result_Highlight"&gt;statistic&lt;/SPAN&gt;&lt;SPAN&gt;s across groups of rows. Use the By variable in a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Search_Result_Highlight"&gt;col&lt;/SPAN&gt;&lt;SPAN&gt;umn formula or in a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="code"&gt;For Each Row()&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;function.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;In reviewing some of the examples from earlier in this post, I would agree that it appears to be treating excluded values as their own By level.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 21:02:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352686#M60207</guid>
      <dc:creator>Wendy_Murphrey</dc:creator>
      <dc:date>2021-01-25T21:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352710#M60210</link>
      <description>&lt;P&gt;OK thanks.&amp;nbsp; I can't really get my head around the idea of generating a column statistic for every row of the table but I guess there must be use-cases.&amp;nbsp; I'll stick with using a user-defined function to calculate column stats whilst taking into account&amp;nbsp; row exclusions.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 21:23:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352710#M60210</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2021-01-25T21:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352857#M60224</link>
      <description>&lt;P&gt;I think that it is the same concept as the one behind binning. You are mapping one value to another for each observation, in this case, a group value. It might be a bin. It might be a measure of central tendency.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 12:39:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/352857#M60224</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-01-26T12:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/707182#M89162</link>
      <description>&lt;P&gt;Adding to this discussion, I would consider the Col functions behaviour to being odd and different from what is typical in JMP and therefore, unexpected and confusing.&lt;/P&gt;&lt;P&gt;Col functions ignore exclusion of rows and filtering, both local and global.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means that local filtering within an analysis output is ignored with col functions and getting results with filtering or by subgroups is not possible or actually the obtained results are incorrect.&lt;/P&gt;&lt;P&gt;The ability to exclude some rows by using a formula is still very limiting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this a problem with JMP since this could potentially confuse or mislead users. I hope JMP team would address this to make Col functionality adhere to that of other functions.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 12:34:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/707182#M89162</guid>
      <dc:creator>Oren_Barilan</dc:creator>
      <dc:date>2023-12-08T12:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/707297#M89171</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/37922"&gt;@Oren_Barilan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;To take a ten thousand foot view of your concern about the Col functions not following the Excluded functionality of the JMP,&amp;nbsp; Platforms, one would have to include many more functions than just the Col functions.&amp;nbsp; A simple SQRT() function, or a SUM() should also be included in your argument, for if they are processed for values on an Excluded row, they too should return a null value.&amp;nbsp; And if this was the case, how do you handle the situation where you do not want the rows ignored?&lt;/P&gt;
&lt;P&gt;So from my point of view, JMP takes a more functional approach, allowing the programmer to have it which every way they need it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Mean( :weight );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;calculates the Mean over all rows in the data table, while&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Mean( If( Excluded( Row State( Row() ) ), ., :weight ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;calculates the Mean on only the non Excluded rows&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 16:34:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/707297#M89171</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-12-08T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Col Functions and Row States</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/707314#M89172</link>
      <description>&lt;P&gt;I agree with Jim.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is also third option, where you handle Excluded as it's own "group" (not sure how it is handled in reality)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Mean(:weight, Excluded())&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1702056117300.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59477i04E3321858445BB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1702056117300.png" alt="jthi_0-1702056117300.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My only "issue" with Col Functions is that they can be dangerous due to how they handle excluded rows AND you can create them so easily from right-click menu. Maybe this risk could be reduced, if JMP did auto-include Excluded() to those formulas (or make it a preference)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 17:24:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Functions-and-Row-States/m-p/707314#M89172</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-08T17:24:05Z</dc:date>
    </item>
  </channel>
</rss>

