<?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: Not sure how to use &amp;amp;quot;Weight&amp;amp;quot; in &amp;amp;quot;Analyze&amp;amp;quot; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684805#M87077</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6029"&gt;@profjmb&lt;/a&gt;&amp;nbsp;: As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9474"&gt;@Georg&lt;/a&gt;&amp;nbsp;'s example is similar to your suggestion to use inverse weights to counteract the different N_rows (he took your weights scaled by 1/2) ,&amp;nbsp; I wonder about your&amp;nbsp;&amp;nbsp;&lt;EM&gt;But those don't yield the expected number.&lt;BR /&gt;&lt;/EM&gt;You didn't get the same result?&lt;/P&gt;</description>
    <pubDate>Sat, 12 Oct 2024 07:01:37 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-10-12T07:01:37Z</dc:date>
    <item>
      <title>Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/483234#M72755</link>
      <description>&lt;P&gt;I want to do something really simple. For simplicity's sake, assume I have two groups, let's say with N=2,000 in group 1 and N=3,000 in group 2. I'd like to compute an overall mean of a variable Y that is collected for each group. Y's mean in group 1 is 4 and in group 2 is 8. The overall mean here would be the unweighted mean and not the weighted mean–it should be 6. I might have thought that I should put in the following values for "Weight":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group 1: 5,000/2,000&lt;/P&gt;&lt;P&gt;Group 2: 5,000/3,000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But those don't yield the expected number. Can you help me understand the "Weight" option in Analyze:JMP and tell me what weights I need to use for my problem?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:48:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/483234#M72755</guid>
      <dc:creator>profjmb</dc:creator>
      <dc:date>2023-06-09T00:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/483261#M72759</link>
      <description>&lt;P&gt;Unless I'm misreading your post, one path to finding each group's mean value is to structure the data table with two columns, "Group" as a nominal variable, and "Y" as continuous variable in the second column. Then a simple Distribution platform run with the "Group" variable in the By window, and the "Y" variable in the Y, columns window and you will get two histograms and summary statistic tables, one for each value in the "Group" column. You don't need to bother with the Weight window.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 16:35:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/483261#M72759</guid>
      <dc:creator>P_Bartell</dc:creator>
      <dc:date>2022-04-30T16:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/483348#M72770</link>
      <description>&lt;P&gt;First, Weight is not Freq. If you know what Freq does, then Weight does something different, or extra.&lt;/P&gt;
&lt;P&gt;I would like to point to the following two SAS articles:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://support.sas.com/kb/22/600.html" target="_self"&gt;Distinction between the WEIGHT and FREQ statements&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/09/13/frequencies-vs-weights-in-regression.html" target="_self"&gt;The difference between frequencies and weights in regression analysis&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In my word, using Weight only if you want to change how individual observations impact your analysis. For example, as in the second article above, one may want to temper the influence of outliers to the analysis.&lt;/P&gt;
&lt;P&gt;So whether you want to use weight or not, and how to use it, you may want to ask your self, how it may impact your analysis and how to interpret the impact.&lt;/P&gt;
&lt;P&gt;In the example that you gave, and by the way that you describe, I can only imagine that you have some sort of summary data, then you want to use Weight to "correct" the contributions from summary statistics from individual groups. But I am not aware of any JMP platforms were designed to handle summary data, other than some tools under Help&amp;gt;Sample Index. If you data is in its original form, you don't need Weight as my colleague has said.&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2022 13:31:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/483348#M72770</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-05-01T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/483576#M72803</link>
      <description>&lt;P&gt;I think, I understand what you want, but not what for it is needed. And I agree to the answers above, that weight might not be the proper way.&lt;/P&gt;
&lt;P&gt;If you want to do it simple, I would use the 2 step approach, first calculating the group means, and then calculating the means of the means (ignoring the frequency).&lt;/P&gt;
&lt;P&gt;So this means you want each group weighted evenly, and the average is 6, see second screenshot.&lt;/P&gt;
&lt;P&gt;But standard in JMP is, that each row has the same weight, as others pointed out already. And if you really need to do this in one "stacked table", you need to calculate the weights in that way, that the result is what you want, but this might get quite complicate and confusing using more groups - so I do not recommend.&lt;/P&gt;
&lt;P&gt;Just for illustration see script below.&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="Georg_0-1651528007925.png" style="width: 954px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42179i883B60D46C0D2CDE/image-dimensions/954x521?v=v2" width="954" height="521" role="button" title="Georg_0-1651528007925.png" alt="Georg_0-1651528007925.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georg_1-1651528975050.png" style="width: 619px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42180i5E88F00126665675/image-dimensions/619x209?v=v2" width="619" height="209" role="button" title="Georg_1-1651528975050.png" alt="Georg_1-1651528975050.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// generate example table
dt = New Table( "test weight",
	add rows( 5000 ),
	New Column( "group", formula( If( Row() &amp;gt; 2000, "B", "A" ) ) ),
	New Column( "value", formula( If( Row() &amp;gt; 2000, Random Normal( 8, 1 ), Random Normal( 4, 1 ) ) ) ),
	New Column( "weight", formula( If( Row() &amp;gt; 2000, 5000 / 6000, 5000 / 4000 ) ) ),
	New Column( "mean", formula( Col Mean( :value ) ) ),
	New Column( "group mean", formula( Col Mean( :value, :group ) ) )
);

dt &amp;lt;&amp;lt; add properties to table(
	{new script(
		"By Distribution",
		Distribution( Stack( 1 ), Continuous Distribution( Column( :value ), Horizontal Layout( 1 ), Vertical( 0 ) ), By( :group ) )
	), new script(
		"Weighted Distribution",
		Distribution( Stack( 1 ), Continuous Distribution( Column( :value ), Horizontal Layout( 1 ), Vertical( 0 ) ), weight( :weight ) )
	)}
);

dt_sum = dt &amp;lt;&amp;lt; summary( subgroup( :group ), Mean( value ) );

dt_sum &amp;lt;&amp;lt; New Column( "all mean", Formula( Mean( :"Mean(value, A)"n, :"Mean(value, B)"n ) ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 22:43:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/483576#M72803</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2022-05-02T22:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684790#M87072</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;/P&gt;&lt;P&gt;- &lt;SPAN&gt;Unlike the FREQ variable &lt;STRONG&gt;&lt;EM&gt;whose values must be integer&lt;/EM&gt;s&lt;/STRONG&gt;, weights can be fractional.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&amp;nbsp;&lt;A href="https://support.sas.com/kb/22/600.html" target="_self" rel="noopener noreferrer"&gt;Distinction between the WEIGHT and FREQ statements&lt;/A&gt;&amp;nbsp;doesn't hold for Jmp?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ignoring fractionals: 6&lt;BR /&gt;if fractionals work as well: 6.4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;- result for all 4 cases&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1696792470247.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57281i060AA1595BB7A5E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1696792470247.png" alt="hogi_2-1696792470247.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;same for Analyze/Distribution and Analyze/Tabulate ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&lt;BR /&gt;please also note that N=2, even if freq &amp;gt; 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "test",
	Add Rows( 2 ),
	New Column( "variable", Set Values( [4, 8] ) ),
	New Column( "N", Set Values( [2000, 3000] ) ),
	New Column( "ratio", Formula( :N / Col Sum( :N ) ))
);

dt &amp;lt;&amp;lt; Summary( Mean( :variable ), Weight( :N ), output table name( "weight(N)" ) );
dt &amp;lt;&amp;lt; Summary( Mean( :variable ), Freq( :N ), output table name( "freq(N)" ) );

dt &amp;lt;&amp;lt; Summary( Mean( :variable ), Weight( :ratio ), output table name( "weight(ratio)" ) );
dt &amp;lt;&amp;lt; Summary( Mean( :variable ), Freq( :ratio ), output table name( "freq(ratio)" ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Oct 2024 07:27:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684790#M87072</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T07:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684800#M87074</link>
      <description>&lt;P&gt;Best documentation for JMP I could quickly find is &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/elements-in-the-fit-model-launch-window.shtml#ww334705" target="_blank" rel="noopener"&gt; Fitting Linear Models &amp;gt; Model Specification &amp;gt; Launch the Fit Model Platform &amp;gt; Elements in the Fit Model Launch Window&lt;/A&gt; . &lt;/P&gt;
&lt;P&gt;Distribution has its own &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/launch-the-distribution-platform.shtml#" target="_self"&gt;https://www.jmp.com/support/help/en/17.0/#page/jmp/launch-the-distribution-platform.shtml#&lt;/A&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-1696795013749.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57287i59EF768223A21115/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1696795013749.png" alt="jthi_0-1696795013749.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;as does tabulate &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/launch-the-tabulate-platform.shtml#" target="_blank"&gt;https://www.jmp.com/support/help/en/17.0/#page/jmp/launch-the-tabulate-platform.shtml#&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1696795035094.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57288i8015817E2777C3BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1696795035094.png" alt="jthi_1-1696795035094.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2023 19:59:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684800#M87074</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-08T19:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684804#M87076</link>
      <description>&lt;P&gt;And concerning Summary:&lt;BR /&gt;&lt;A href="https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/summary-launch-window.shtml#ww272136" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/summary-launch-window.shtml#ww272136&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1696795807410.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57290i41D523EABFD07216/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1696795807410.png" alt="hogi_1-1696795807410.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;ah, OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following the first link, I found:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1696795517206.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57289iBF57B84535D52DF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1696795517206.png" alt="hogi_0-1696795517206.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, slightly hidden, but under the line:&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Unlike the FREQ variable&amp;nbsp;whose values must be integers, weights can be fractional.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;from&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.sas.com/kb/22/600.html" target="_self" rel="noopener noreferrer"&gt;Distinction between the WEIGHT and FREQ statements&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(SAS)&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;doesn't&lt;/EM&gt; &lt;/STRONG&gt;hold for Jmp?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 07:00:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684804#M87076</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T07:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684805#M87077</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6029"&gt;@profjmb&lt;/a&gt;&amp;nbsp;: As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9474"&gt;@Georg&lt;/a&gt;&amp;nbsp;'s example is similar to your suggestion to use inverse weights to counteract the different N_rows (he took your weights scaled by 1/2) ,&amp;nbsp; I wonder about your&amp;nbsp;&amp;nbsp;&lt;EM&gt;But those don't yield the expected number.&lt;BR /&gt;&lt;/EM&gt;You didn't get the same result?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 07:01:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684805#M87077</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T07:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684839#M87083</link>
      <description>&lt;P&gt;I found this discussion after some surprises with Tables/Summary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We started by using weight in Tables/Summary along the idea:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1696828608280.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57293i6FA7335D75CF6741/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1696828608280.png" alt="hogi_1-1696828608280.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and found out that Median is one of the most simple cases to explain the difference between &lt;STRONG&gt;Freq&lt;/STRONG&gt; and &lt;STRONG&gt;Weight&lt;/STRONG&gt;&amp;nbsp; :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It always returns the "center" value, independent of weighting. So, using Weight doesn't work.&lt;BR /&gt;&lt;BR /&gt;The "workaround":&lt;BR /&gt;If the user wants to &lt;EM&gt;weight&lt;/EM&gt; different values differently in a Median calculation, he has to use &lt;STRONG&gt;Freq&lt;/STRONG&gt;, i.e.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;tell[] the procedure that there are more observations than there are rows in the data set.&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;[&lt;A href="https://blogs.sas.com/content/iml/2013/09/13/frequencies-vs-weights-in-regression.html" target="_self" rel="noopener noreferrer"&gt;The difference between frequencies and weights in regression analysis&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All this definitely makes sense&lt;BR /&gt;but nevertheless: surprising when you see it the first time.&lt;BR /&gt;and: dangerous - if you don't see it ;)&lt;/img&gt;&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="hogi_2-1696829076949.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57294i7E7FEE9719FCE372/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1696829076949.png" alt="hogi_2-1696829076949.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;dt = New Table( "test",
	Add Rows( 120 ),
	Compress File When Saved( 1 ),
	New Column( "X_Value",
		Formula( Row() )
	),
	New Column( "counts",
		Formula( spectris:Gaussian( :X_Value, 1, 100, 5 ) ),
		Set Selected
	)
);

dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :X_Value ), Y( :counts ) ),
	Elements(
		Points( X, Y, Legend( 3 ) ),
		Smoother( X, Y, Legend( 4 ), Lambda( 0.000002 ) )
	)
);

dt &amp;lt;&amp;lt; Summary(
	Mean( :X_Value ),
	Median( :X_Value ),
	Freq( :counts ),
	output table name( "Freq(counts)" )
);

dt &amp;lt;&amp;lt; Summary(
	Mean( :X_Value ),
	Median( :X_Value ),
	Weight( :counts ),
	output table name( "Weight(counts)" )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 06:19:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684839#M87083</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-09T06:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/694373#M87951</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following the first link, I found:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1696795517206.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57289iBF57B84535D52DF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1696795517206.png" alt="hogi_0-1696795517206.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;But for Freq in &lt;STRONG&gt;Graph Builder&lt;/STRONG&gt;, the values &lt;STRONG&gt;must&lt;/STRONG&gt; be integer - otherwise they are ignored:&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;[counts &amp;lt; 10, although Freq ~ 100]&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry, misleading graph - see below.&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="hogi_0-1699044095487.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58326iACF747DF2BE1CC99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1699044095487.png" alt="hogi_0-1699044095487.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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 = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "freq",	set each value( 100.5 ));
Graph Builder(
	Variables( X( :sex ), Y( :age ), Frequency( :freq ) ),
	Elements( Heatmap( X, Y, Legend( 5 ), Label( "Label by Value" ) ) )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 07:29:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/694373#M87951</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T07:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to use &amp;quot;Weight&amp;quot; in &amp;quot;Analyze&amp;quot;</title>
      <link>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/805175#M98325</link>
      <description>&lt;P&gt;same example as above, with Graph Builder:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "test",	Add Rows( 2 ),
	New Column( "variable", Set Values( [4, 8] ) ),
	New Column( "N", Set Values( [2000, 3000] ) ),
	New Column( "ratio", Formula( :N / Col Sum( :N )*1000 ))
);
Graph Builder(Variables( Y( :variable ), Frequency( :ratio ) ),	Elements( Bar( Y ) ));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... and the result is 6.4.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1728718200283.png" style="width: 289px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69056iFE86104AD436BE5C/image-dimensions/289x232?v=v2" width="289" height="232" role="button" title="hogi_0-1728718200283.png" alt="hogi_0-1728718200283.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, Graph Builder follows the same lines as the other platforms?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1728718512053.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69057iE51F7CF20B9DD118/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1728718512053.png" alt="hogi_1-1728718512053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no -- GraphBuilder automatically switches to weight:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1728718545430.png" style="width: 76px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69058i6C3424612B5817C8/image-dimensions/76x69?v=v2" width="76" height="69" role="button" title="hogi_2-1728718545430.png" alt="hogi_2-1728718545430.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;... with the previously mentioned impact on other statistics like &lt;A href="https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/684839/highlight/true#M87083" target="_blank" rel="noopener"&gt;Median&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;All this definitely makes sense&lt;BR /&gt;but nevertheless: surprising when you see it the first time.&lt;BR /&gt;and: dangerous - if you don't see it ;)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;And the counts (previous post), why is the graph misleading?&lt;BR /&gt;Freq doesn't have an impact on &lt;STRONG&gt;&lt;EM&gt;Counts &lt;/EM&gt;&lt;/STRONG&gt;- neither in Graph Builder nor in Summary Statistics.&lt;BR /&gt;[-&amp;gt; I added a comment to the post on summary statistics]&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 07:52:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Not-sure-how-to-use-amp-quot-Weight-amp-quot-in-amp-quot-Analyze/m-p/805175#M98325</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-12T07:52:05Z</dc:date>
    </item>
  </channel>
</rss>

