<?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 Tabulate: Showing missing values when using formula derived categorical variables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70586#M35243</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am putting together a script to build a table that will use a formula derived categorical variable as the columns.&amp;nbsp; This scipt will be used on different data sets so I'd like to generalize it to show all values in the categorical variable even if the current data set does not show the value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;say I have data set&amp;nbsp;containing&amp;nbsp;list of test subjects of different ages like so:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; Age&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; 40&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; 11&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; 21&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; 36&lt;/P&gt;&lt;P&gt;and I include a&amp;nbsp;formula column called "Age Bin" that has 3 groups: "&amp;lt; 10", "10-20" and "&amp;gt;=20", the table becomes:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; Age&amp;nbsp; &amp;nbsp; Age Bin&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;40&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&amp;gt;=20"&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; 11&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "10-20"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; 21&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&amp;gt;=20"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; 36&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&amp;gt;=20"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I use Tabulate to get a table of number of test subjects in the different age bins, I'd get the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&amp;gt;=20"&amp;nbsp; &amp;nbsp; &amp;nbsp;"10-20"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Since I'd like to run this script on different data sets, is there a way to force Tabulate to show "&amp;lt;10" with a 0 count even though there is none in the current data set?&amp;nbsp; The option "Include missing for grouping columns" does not apply for this case.&amp;nbsp; I'd like to do this in JSL but I don't even know to do this with the control panel so any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 20:35:03 GMT</pubDate>
    <dc:creator>KD</dc:creator>
    <dc:date>2018-08-29T20:35:03Z</dc:date>
    <item>
      <title>Tabulate: Showing missing values when using formula derived categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70586#M35243</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am putting together a script to build a table that will use a formula derived categorical variable as the columns.&amp;nbsp; This scipt will be used on different data sets so I'd like to generalize it to show all values in the categorical variable even if the current data set does not show the value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;say I have data set&amp;nbsp;containing&amp;nbsp;list of test subjects of different ages like so:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; Age&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; 40&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; 11&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; 21&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; 36&lt;/P&gt;&lt;P&gt;and I include a&amp;nbsp;formula column called "Age Bin" that has 3 groups: "&amp;lt; 10", "10-20" and "&amp;gt;=20", the table becomes:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; Age&amp;nbsp; &amp;nbsp; Age Bin&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;40&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&amp;gt;=20"&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; 11&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "10-20"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; 21&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&amp;gt;=20"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; 36&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&amp;gt;=20"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I use Tabulate to get a table of number of test subjects in the different age bins, I'd get the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&amp;gt;=20"&amp;nbsp; &amp;nbsp; &amp;nbsp;"10-20"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Since I'd like to run this script on different data sets, is there a way to force Tabulate to show "&amp;lt;10" with a 0 count even though there is none in the current data set?&amp;nbsp; The option "Include missing for grouping columns" does not apply for this case.&amp;nbsp; I'd like to do this in JSL but I don't even know to do this with the control panel so any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 20:35:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70586#M35243</guid>
      <dc:creator>KD</dc:creator>
      <dc:date>2018-08-29T20:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate: Showing missing values when using formula derived categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70587#M35244</link>
      <description>&lt;P&gt;The only way that I know how to do this is to join/update a separate table that contains one entry for each group value.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 21:41:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70587#M35244</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-29T21:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate: Showing missing values when using formula derived categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70588#M35245</link>
      <description>&lt;P&gt;This is quick:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Use value lables column property and include all levels&lt;/P&gt;
&lt;P&gt;2. Use categoical platfrom (Analyze&amp;gt;Consumer Research&amp;gt;Categorical&lt;/P&gt;
&lt;P&gt;3. Use the simple, use the "include responeses not in data option"&lt;/P&gt;
&lt;P&gt;4. Then save out the transposed frequencies...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully this can drive you in the right direction....&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 22:00:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70588#M35245</guid>
      <dc:creator>KarenC</dc:creator>
      <dc:date>2018-08-29T22:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate: Showing missing values when using formula derived categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70659#M35259</link>
      <description>Thanks for the help but this only works if I were analyzing categorical responses but I need to generalize the method to add general summary statistics for the other parameters in my analysis, which is why I wanted to use Tabulate in the first place.&lt;BR /&gt;&lt;BR /&gt;I don't have a lot of columns in my data set so I can work around it for now and not have to build a bunch of separate tables. I was hoping there'd be a simpler way, thanks for the responses.</description>
      <pubDate>Thu, 30 Aug 2018 16:05:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70659#M35259</guid>
      <dc:creator>KD</dc:creator>
      <dc:date>2018-08-30T16:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate: Showing missing values when using formula derived categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70661#M35260</link>
      <description>&lt;P&gt;To add to Jim's idea, add three rows for the&amp;nbsp;standard age bins, and add a column indicating what the data row indicates:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 192pt;" border="0" width="256" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" class="xl63" style="height: 15.0pt; width: 48pt;"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64" class="xl63" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Age&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64" class="xl63" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Age Bin&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64" class="xl63" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&amp;gt;=20&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Data&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;10-20&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Data&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&amp;gt;=20&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Data&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;36&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&amp;gt;=20&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Data&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt; border-top: none;"&gt;X&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&amp;lt;10&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Standard&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt; border-top: none;"&gt;Y&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;10-20&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Standard&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt; border-top: none;"&gt;Z&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&amp;gt;=20&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Standard&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you tabulate these results, drag the &lt;STRONG&gt;Age Bin&lt;/STRONG&gt; column onto the drop zone for rows, and the &lt;STRONG&gt;Status&lt;/STRONG&gt; column onto the drop zone for columns.&amp;nbsp; This is the result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tabulate_agebin.png" style="width: 240px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12248iE6B3E482C13FABF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="tabulate_agebin.png" alt="tabulate_agebin.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You have an extra column now, but if you convert it to a table you can delete it.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 16:08:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70661#M35260</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-08-30T16:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate: Showing missing values when using formula derived categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70662#M35261</link>
      <description>Great idea, that would work perfectly! Since my goal is to script it, I can easily add and remove those dummy columns so it won't even show up once the script is complete.&lt;BR /&gt;&lt;BR /&gt;Thanks everyone!</description>
      <pubDate>Thu, 30 Aug 2018 16:28:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tabulate-Showing-missing-values-when-using-formula-derived/m-p/70662#M35261</guid>
      <dc:creator>KD</dc:creator>
      <dc:date>2018-08-30T16:28:32Z</dc:date>
    </item>
  </channel>
</rss>

