title: Tabulate Command Stata
body: <p>I don't know if Stata can do this but I use the <code>tabulate</code> command a lot in order to find frequencies. For instance, I have a success variable which takes on values 0 to 1 and I would like to know the success rate for a certain group of observations ie <code>tab success if group==1</code>. I was wondering if I can do sort of the inverse of this operation.  That is, I would like to know if I can find a value of "group" for which the frequency is greater than or equal to 15% for example.  </p>
  
  <p>Is there a command that does this? </p>
  
  <p>Thanks</p>
  
  <p>As an example</p>
  
  <pre><code>sysuse auto
  gen success=mpg&lt;29
  </code></pre>
  
  <p>Now I want to find the value of price such that the frequency of the success variable is greater than 75% for example.</p>