title: Using Tabulate for 3-way table
body: <p>I am trying to output a three way frequency table. I am able to do this (roughly) with proc freq, but would like the control for variable to be joined. I thought <code>proc tabulate</code> would be a good way to customize the output. Basically I want to fill in the cells with frequency, and then customize the percents at a later time. So, have count and column percent in each cell. Is that doable with <code>proc tabulate</code>?</p>
  
  <p>Right now I have:</p>
  
  <pre><code>proc freq data=have;
  table group*age*level / norow nopercent;
  run;
  </code></pre>
  
  <p>that gives me e.g.:</p>
  
  <p><img src="https://i.stack.imgur.com/mZDma.png" alt="enter image description here"></p>
  
  <p>What I want:</p>
  
  <p><img src="https://i.stack.imgur.com/7hKcq.png" alt="enter image description here"></p>
  
  <p>Here is the code I am using: </p>
  
  <pre><code>proc tabulate data=ex1;
    class age level group;
    var age;
    table age='Age Category', 
          mean=' '*group=''*level=''*F=10./ RTS=13.;
  run;
  </code></pre>
  
  <p>Thanks!</p>