title: Simulate data for repeated binary measures
body: <p>I can generate a binary variable <code>y</code> as follows:</p>
  
  <pre><code>clear
  set more off
  gen y =.
  replace y = rbinomial(1, .5)
  </code></pre>
  
  <p>How can I generate <code>n</code> variables <code>y_1, y_2, ..., y_n</code> with a correlation of <code>rho</code>?</p>