title: SAS Proc means, storing mean values as variables
body: <p>I need to find a ratio of two mean values, that I have found using <code>proc means</code>.</p>
  
  <pre><code>proc means data=a;
  class X Y;
  var x1 x2;
  run;
  </code></pre>
  
  <p>Then I get the output mean values for variables <code>x1</code> and <code>x2</code> in the two categories of <code>X</code> and <code>Y</code>, but it is <code>x1/x2</code> for each category that I am interested in, and doing it by hand is not really a solution.</p>
  
  <p>I am not a professional programmer, so I hope there is a simple piece of code that I can understand and use.</p>