<?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: add a summary statistic column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/254894#M50047</link>
    <description>&lt;P&gt;I am not accomplishing the task&lt;/P&gt;
&lt;P&gt;Here is the output of the summary table script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Tabulate(
	Add Table( Column Table( Analysis Columns( :OTU ) ), Row Table( Grouping Columns( :Plot and replicate ) ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It gives me the exact statistic that i need in one row per grouping variable. now i need it to repeat for each row with the grouping variable (and i have 73000 rows!)&lt;/P&gt;
&lt;P&gt;anyway i am new to scripting so pardon my obvious lack of experience&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2020 11:52:23 GMT</pubDate>
    <dc:creator>ezorlo</dc:creator>
    <dc:date>2020-03-30T11:52:23Z</dc:date>
    <item>
      <title>add a summary statistic column</title>
      <link>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/253915#M49852</link>
      <description>&lt;P&gt;Dear Community&lt;/P&gt;&lt;P&gt;first best wishes for good health!&lt;/P&gt;&lt;P&gt;i need to add summary statistic for a data table with a grouping variable. i want the summary statistic to appear in every row that the matching grouping variable appears.&lt;/P&gt;&lt;P&gt;what i've done until now is to create a separate summary statistic table and then manually recode the grouping variable column. this is a bit tedious. is there a way to just merge the recode and summary table?&lt;/P&gt;&lt;P&gt;see pics&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 09:33:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/253915#M49852</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2020-03-24T09:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: add a summary statistic column</title>
      <link>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/253920#M49853</link>
      <description>&lt;P&gt;Is this what you are after? Do 'File &amp;gt; New Script', copy and paste the code below, then 'Edit &amp;gt; Run Script'.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; New Column( "Mean weight Grouped by age", Formula( Col Mean( :weight, :age ) ) );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If so, take a look at the formula column in the table. Using 'Help &amp;gt; Scripting Index' gives some other possibilities:&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="Screenshot 2020-03-24 at 10.03.20.png" style="width: 264px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22510iA408C4275DB89286/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-03-24 at 10.03.20.png" alt="Screenshot 2020-03-24 at 10.03.20.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 10:07:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/253920#M49853</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2020-03-24T10:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: add a summary statistic column</title>
      <link>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/253927#M49855</link>
      <description>Thanks for the prompt response!&lt;BR /&gt;It looks right, but my wife kicked me off the computer to watch the kids 8)&lt;/img&gt;&lt;BR /&gt;so I'll try it soon and let u know.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2020 11:48:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/253927#M49855</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2020-03-24T11:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: add a summary statistic column</title>
      <link>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/254894#M50047</link>
      <description>&lt;P&gt;I am not accomplishing the task&lt;/P&gt;
&lt;P&gt;Here is the output of the summary table script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Tabulate(
	Add Table( Column Table( Analysis Columns( :OTU ) ), Row Table( Grouping Columns( :Plot and replicate ) ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It gives me the exact statistic that i need in one row per grouping variable. now i need it to repeat for each row with the grouping variable (and i have 73000 rows!)&lt;/P&gt;
&lt;P&gt;anyway i am new to scripting so pardon my obvious lack of experience&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 11:52:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/254894#M50047</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2020-03-30T11:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: add a summary statistic column</title>
      <link>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/254921#M50054</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605"&gt;@ian_jmp&lt;/a&gt; gave you an example of what you need to use, he just didn't put it into the specifics of your data table.&amp;nbsp; So if you run this little script, against your data table, it should give you what you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

dt &amp;lt;&amp;lt; New Column( "Mean OTU  Grouped by Plot and replicate",
     formula( Col Mean( :OTU, :Plot and replicate ) ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Mar 2020 18:45:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/254921#M50054</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-03-29T18:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: add a summary statistic column</title>
      <link>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/254924#M50055</link>
      <description>Thank you both very much I was able to make the column!!&lt;BR /&gt;This saved me from manually recoding the grouping variable column. Also this script was useful for helping me to understand the col sum function better, which I used in a formula to achieve the same result. Thanks again and best of health</description>
      <pubDate>Sun, 29 Mar 2020 19:39:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/254924#M50055</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2020-03-29T19:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: add a summary statistic column</title>
      <link>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/254926#M50056</link>
      <description>My error.....I totally skipped over that you wanted the sum, not the mean....sorry</description>
      <pubDate>Sun, 29 Mar 2020 20:11:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-a-summary-statistic-column/m-p/254926#M50056</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-03-29T20:11:50Z</dc:date>
    </item>
  </channel>
</rss>

