title: The way to get the same answer by binom.test or prop.test
body: <p>I'd like to get the same answer by binom.test or prop.test in R for the following question. How can I get the same answer of my manual calculation(0.009903076)?</p>
  <p>n=475, H0:p=0.05, H1:p&gt;0.05
  What is the probability of phat&gt;0.0733?</p>
  <pre><code>n &lt;- 475
  p0 &lt;- 0.05
  p &lt;- 0.0733
  (z &lt;- (p - p0)/sqrt(p0*(1 - p0)/n))
  # [1] 2.33
  (ans &lt;- 1 - pnorm(z))
  # [1] 0.009903076
  </code></pre>