title: How to obtain a confidence interval for the difference in two proportions in Stata
body: <p>I would like to obtain a confidence interval for the difference in two proportions.</p>
  
  <p>For example</p>
  
  <pre><code>webuse highschool
  tab race sex, col chi2
  
  
    1=white, |
    2=black, |   1=male, 2=female
     3=other |      male     female |     Total
  -----------+----------------------+----------
       White |     1,702      1,850 |     3,552 
             |     87.82      86.73 |     87.25 
  -----------+----------------------+----------
       Black |       201        249 |       450 
             |     10.37      11.67 |     11.05 
  -----------+----------------------+----------
       Other |        35         34 |        69 
             |      1.81       1.59 |      1.69 
  -----------+----------------------+----------
       Total |     1,938      2,133 |     4,071 
             |    100.00     100.00 |    100.00 
  
        Pearson chi2(2) =   1.9652   Pr = 0.374
  </code></pre>
  
  <p>The difference in the proportion of of white race who are male and female is 87.82 - 86.73 = 1.09 and I would like a confidence interval for this difference.</p>