<?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 i'd like to create tabulate table! in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/i-d-like-to-create-tabulate-table/m-p/396606#M66534</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'd like to create tabulate table to compare the difference between the median of total 'CURRENT_BALANCE' and median of total 'weekint' for genders&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i tried to create table using this code but don't know how to fix this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HERE is my code&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data = mergediff;
class gender;
var CURRENT_BALANCE weekint;
table gender ALL, median*(CURRENT_BALANCE ALL);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;HERE is my error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;318 proc tabulate data = mergediff;&lt;BR /&gt;319 class gender;&lt;BR /&gt;320 var CURRENT_BALANCE weekint;&lt;BR /&gt;321 table gender ALL, median*(CURRENT_BALANCE ALL);&lt;BR /&gt;322 run;&lt;/P&gt;&lt;P&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : gender * Median * All.&lt;BR /&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : All * Median * All.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE TABULATE used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;I attached the result of data 'mergediff' by proc print for reference&lt;/STRONG&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="캡처.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15231i276AFC336AC9B5A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="캡처.JPG" alt="캡처.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Sep 2017 00:23:18 GMT</pubDate>
    <dc:creator>glee217</dc:creator>
    <dc:date>2017-09-17T00:23:18Z</dc:date>
    <item>
      <title>i'd like to create tabulate table!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/i-d-like-to-create-tabulate-table/m-p/396606#M66534</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'd like to create tabulate table to compare the difference between the median of total 'CURRENT_BALANCE' and median of total 'weekint' for genders&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i tried to create table using this code but don't know how to fix this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HERE is my code&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data = mergediff;
class gender;
var CURRENT_BALANCE weekint;
table gender ALL, median*(CURRENT_BALANCE ALL);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;HERE is my error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;318 proc tabulate data = mergediff;&lt;BR /&gt;319 class gender;&lt;BR /&gt;320 var CURRENT_BALANCE weekint;&lt;BR /&gt;321 table gender ALL, median*(CURRENT_BALANCE ALL);&lt;BR /&gt;322 run;&lt;/P&gt;&lt;P&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : gender * Median * All.&lt;BR /&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : All * Median * All.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE TABULATE used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;I attached the result of data 'mergediff' by proc print for reference&lt;/STRONG&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="캡처.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15231i276AFC336AC9B5A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="캡처.JPG" alt="캡처.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2017 00:23:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/i-d-like-to-create-tabulate-table/m-p/396606#M66534</guid>
      <dc:creator>glee217</dc:creator>
      <dc:date>2017-09-17T00:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: i'd like to create tabulate table!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/i-d-like-to-create-tabulate-table/m-p/396609#M66535</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I see that you have WEEKINT in your VAR statement, but you do NOT have it in your TABLE statement. So I do not believe you are going to get the comparison you want unless you do something with WEEKINT in the TABLE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This uses SASHELP.CLASS, but illustrates how you would compare median height with median weight:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;** this generates error;
proc tabulate data = sashelp.class;
class sex;
var height weight;
table sex ALL, median*(height ALL);
run;
  
** This does not generate error;
** and compares median of height with median of weight;
proc tabulate data = sashelp.class;
class sex;
var height weight;
table sex ALL, 
      median*(height weight);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2017 00:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/i-d-like-to-create-tabulate-table/m-p/396609#M66535</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-09-17T00:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: i'd like to create tabulate table!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/i-d-like-to-create-tabulate-table/m-p/396614#M66536</link>
      <description>yes it's because i didn't know how to form a code?&lt;BR /&gt;can you tell me what i have to do? i still want to compare two medians&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 17 Sep 2017 01:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/i-d-like-to-create-tabulate-table/m-p/396614#M66536</guid>
      <dc:creator>glee217</dc:creator>
      <dc:date>2017-09-17T01:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: i'd like to create tabulate table!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/i-d-like-to-create-tabulate-table/m-p/396624#M66537</link>
      <description>&lt;P&gt;It sounds like you need a small adjustment to the TABLES statement. &amp;nbsp;Where you now have this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(CURRENT_BALANCE ALL)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(CURRENT_BALANCE WEEKINT)&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2017 02:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/i-d-like-to-create-tabulate-table/m-p/396624#M66537</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-09-17T02:51:04Z</dc:date>
    </item>
  </channel>
</rss>

