<?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 Proc Tabulate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/238697#M43854</link>
    <description>&lt;P&gt;Hello all, I'm having trouble with proc tabulate. &amp;nbsp;I need a table that shows mean SEED, TIME, and SPLIT TIME 1 for each STATE by GENDER group, But I also need it to show the number of particpants in each state by gender group. I have the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc tabulate data = q10;&lt;BR /&gt;format gender sex_fmt.;&lt;BR /&gt;class state gender;&lt;BR /&gt;var seed time split1 ;&lt;BR /&gt;tables (seed time split1)*mean,state*gender;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format simply takes gender from being 0's and 1's to Male and Female. &amp;nbsp;That code works just fine and produces a table that meets the first few requirements, but my problem comes in when I try to show the number of participants in each state by gender category. &amp;nbsp;I've added *n everywhere I can think of and I still get the same error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are multiple statistics associated with a single table cell in the following nesting :&lt;BR /&gt;Split1 * Mean * Gender * N * State.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is the code that generated that error:&lt;/P&gt;&lt;P&gt;proc tabulate data = q10;&lt;BR /&gt;format gender sex_fmt.;&lt;BR /&gt;class state gender;&lt;BR /&gt;var seed time split1 ;&lt;BR /&gt;tables (seed time split1)*mean,state*gender*n;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter how I arrange the variables it always tells me that I have overlapping data in cells. &amp;nbsp;What am I missing??????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2015 15:02:38 GMT</pubDate>
    <dc:creator>KevinJChristie</dc:creator>
    <dc:date>2015-12-10T15:02:38Z</dc:date>
    <item>
      <title>Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/238697#M43854</link>
      <description>&lt;P&gt;Hello all, I'm having trouble with proc tabulate. &amp;nbsp;I need a table that shows mean SEED, TIME, and SPLIT TIME 1 for each STATE by GENDER group, But I also need it to show the number of particpants in each state by gender group. I have the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc tabulate data = q10;&lt;BR /&gt;format gender sex_fmt.;&lt;BR /&gt;class state gender;&lt;BR /&gt;var seed time split1 ;&lt;BR /&gt;tables (seed time split1)*mean,state*gender;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format simply takes gender from being 0's and 1's to Male and Female. &amp;nbsp;That code works just fine and produces a table that meets the first few requirements, but my problem comes in when I try to show the number of participants in each state by gender category. &amp;nbsp;I've added *n everywhere I can think of and I still get the same error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are multiple statistics associated with a single table cell in the following nesting :&lt;BR /&gt;Split1 * Mean * Gender * N * State.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is the code that generated that error:&lt;/P&gt;&lt;P&gt;proc tabulate data = q10;&lt;BR /&gt;format gender sex_fmt.;&lt;BR /&gt;class state gender;&lt;BR /&gt;var seed time split1 ;&lt;BR /&gt;tables (seed time split1)*mean,state*gender*n;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter how I arrange the variables it always tells me that I have overlapping data in cells. &amp;nbsp;What am I missing??????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 15:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/238697#M43854</guid>
      <dc:creator>KevinJChristie</dc:creator>
      <dc:date>2015-12-10T15:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/238700#M43856</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data = q10;
format gender sex_fmt.;
class state gender;
var seed time split1 ;
tables (seed time split1)*(mean N),state*gender;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does that get you any closer?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 15:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/238700#M43856</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-10T15:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/238704#M43860</link>
      <description>&lt;P&gt;That works! Its not pretty but it works! thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 15:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/238704#M43860</guid>
      <dc:creator>KevinJChristie</dc:creator>
      <dc:date>2015-12-10T15:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/238707#M43862</link>
      <description>Yeah, without sample data and a clearer picture of what your table should look like it's harder to help. One little cheat that I do, is use SAS EG for building tables and then steal the proc tabulate code.</description>
      <pubDate>Thu, 10 Dec 2015 15:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/238707#M43862</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-10T15:35:12Z</dc:date>
    </item>
  </channel>
</rss>

