span></code></pre>
<p>Note that we are creating our binary data within the
<code>proptest</code> call. The <code>proptest</code> function works
with 0-1 numeric data, two-level factors, or (as above)
<code>TRUE</code>/<code>FALSE</code> data. Using the <code>exact</code>
argument allows us to choose what kind of test we run. In this case, the
results are quite similar.</p>
<p>Given two samples, we can also test whether two proportions are equal
to each other. There is no <code>exact</code> option for a two-