<?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: How to center data into a new column but only for specific conditions based on other columns? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-center-data-into-a-new-column-but-only-for-specific/m-p/358799#M60897</link>
    <description>&lt;P&gt;The formula to use is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Age - Col Mean( :Age, :City, :Gender )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The data table with the formula is attached&lt;/P&gt;
&lt;P&gt;The Col Mean() formula is documented in the Scripting Index available under the Help pull down menu&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 01:18:40 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-02-15T01:18:40Z</dc:date>
    <item>
      <title>How to center data into a new column but only for specific conditions based on other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-center-data-into-a-new-column-but-only-for-specific/m-p/358788#M60896</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to center my data. But the problem is I only want to adjust the data with an average of it's respective category. For example, see table below. What if in the "age adjusted" col, I want the age column data but subtracted by the average of only the age data that has the same "city" and "gender" category?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So each age for "san francisco" and "male" would be subtracted by average of 1,2,3 = 2. The formula for new col "center" will use the average including every age in the entire column, right? So that won't work for me..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&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="schou1994_0-1613350648089.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30224i02A4A0D753E57E56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schou1994_0-1613350648089.png" alt="schou1994_0-1613350648089.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:06:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-center-data-into-a-new-column-but-only-for-specific/m-p/358788#M60896</guid>
      <dc:creator>schou1994</dc:creator>
      <dc:date>2023-06-09T22:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to center data into a new column but only for specific conditions based on other columns?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-center-data-into-a-new-column-but-only-for-specific/m-p/358799#M60897</link>
      <description>&lt;P&gt;The formula to use is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Age - Col Mean( :Age, :City, :Gender )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The data table with the formula is attached&lt;/P&gt;
&lt;P&gt;The Col Mean() formula is documented in the Scripting Index available under the Help pull down menu&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 01:18:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-center-data-into-a-new-column-but-only-for-specific/m-p/358799#M60897</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-02-15T01:18:40Z</dc:date>
    </item>
  </channel>
</rss>

