Control group:
#Wald
19/385-1.96*sqrt(19/385*366/414/414)
## [1] 0.02922997
19/385+1.96*sqrt(19/385*366/414/414)
## [1] 0.06947133
#AC
21/389-1.96*sqrt(21/389*368/389/389)
## [1] 0.03152688
21/389+1.96*sqrt(21/389*368/389/389)
## [1] 0.07644227
#Score
prop.test(19,385)
##
## 1-sample proportions test with continuity correction
##
## data: 19 out of 385, null probability 0.5
## X-squared = 310.95, df = 1, p-value < 2.2e-16
## alternative hypothesis: true p is not equal to 0.5
## 95 percent confidence interval:
## 0.03079495 0.07733135
## sample estimates:
## p
## 0.04935065
Vaccine group
#Vaccine
#Wald
1/414-1.96*sqrt(1/414*412/414/414)
## [1] -0.002307391
1/414+1.96*sqrt(1/414*412/414/414)
## [1] 0.007138309
#AC
3/418-1.96*sqrt(3/418*414/418/418)
## [1] -0.0009055918
3/418+1.96*sqrt(3/418*414/418/418)
## [1] 0.01525966
#Score
prop.test(1,414)
##
## 1-sample proportions test with continuity correction
##
## data: 1 out of 414, null probability 0.5
## X-squared = 408.02, df = 1, p-value < 2.2e-16
## alternative hypothesis: true p is not equal to 0.5
## 95 percent confidence interval:
## 0.0001261002 0.0155361398
## sample estimates:
## p
## 0.002415459