title: Get quantile by groups in SAS
body: <p>I have this sort of table :</p>
  
  <pre><code>Cluster    Age    FR
        8     70   153
  ...
  </code></pre>
  
  <p>What I want is to get a table : for each Cluster and for each Age, the mean of FR in each 10th quantile. It should look like :</p>
  
  <pre><code>Cluster Age Quantile    FR
  1       1   10%         12
  1       1   20%         14
  1       1   30%         16
  1       1   40%         18
  1       1   50%         20
  1       1   60%         22
  1       1   70%         24
  1       1   80%         26
  1       1   90%         28
  1       1   100%        30
  1       2   10%         13
  1       2   20%         15
  1       2   30%         17
  </code></pre>
  
  <p>I tried doing this with proc univariate but with no success...</p>
  
  <pre><code>proc univariate data=etude.Presta_cluster_panier noprint;
      var FR;
      output out=pctls pctlpre=P_ pctlpts=0 to 100 by 10;
  run;
  </code></pre>