## 범주형자료분석 – Tables

1- A) Difference of proportions $\hat{\pi_{1}} = \dfrac{21}{23} = 0.913$ $\hat{\pi_{2}} = \dfrac{8}{17} = 0.470$ $SE = \sqrt{\dfrac{0.913\times (1-0.913)}{23} + \dfrac{0.47\times (1-0.47)}{17}} = 0.134$ $0.913-0.470 \pm1.96 \times 0.134 = (0.7, 0.18)$ rcode diffscoreci(21, 23, 8, 17, conf.level=0.95) #Score CI for D data: 95 percent confidence interval: 0.1648695 0.6755755 relative risk 더보기…